     

      function getWindowYOffsetSpy() {
        if ( window.pageYOffset || window.pageYOffset == 0 )
          return window.pageYOffset;
        if ( document.body.scrollTop || document.body.scrollTop == 0 ) {
          if ( document.documentElement.scrollTop || document.documentElement.scrollTop == 0 ) {
            // IE 6 uses document.documentElement.scrollTop instead of
            // document.body.scrollTop. Has to do with viewpoints -
            // see some w3 spec ;-)
            return document.body.scrollTop + document.documentElement.scrollTop;
          } else
            return document.body.scrollTop;
        }
        return 0;
      }

      function doscroll(y) {
        window.scrollTo(0,parseInt(y));
      }

      function getscroll(formid) {
        document.forms[formid].scroll.value=getWindowYOffsetSpy();
       
				return getWindowYOffsetSpy();
      }

