function UpdateScrollY() {
	var oScrollY;
	var aoFrames;
	var x;
	var top = document.documentElement.scrollTop;
	var y;
	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;

	return y;
}
