function UpdateScrollY() {
	var oScrollY;
	var aoFrames;
	var x;
	var top = document.documentElement.scrollTop;
	var y;
	
	try
	{
		aoFrames = document.getElementsByTagName('iframe');
	
		if (aoFrames != null) {
			for (x = 0; x < aoFrames.length; x++) {
				if (window.frames[aoFrames[x].id]) {
					oScrollY = window.frames[aoFrames[x].id].document.getElementById("ScrollY");
	
					if (oScrollY != null) {
						oScrollY.value = top;
						y = oScrollY.value;
					}
				}
			}
		}
		//window.status = "top: " + top + " y: " + y;
	}
	catch(err)
	{
		//window.status = "There was an error in (scroll.js;UpdateScrollY()): " + err.description;
	}

	return y;
}
