

		function ScrollIt(){
			window.scrollTo(document.Form1.PageX.value,document.Form1.PageY.value);
			//setFocusOnElement();
			}
		function setcoords(){
			var myPageX;
			var myPageY;			
			if (document.all){
				myPageX = document.body.scrollLeft;
				myPageY = document.body.scrollTop;
				}
			else{
				myPageX = window.pageXOffset;
				myPageY = window.pageYOffset;
				
				}
			document.Form1.PageX.value = myPageX;
			document.Form1.PageY.value = myPageY;
			}

			function setFocusOnElement()
			{
				var elementid = document.Form1.FocusElement.value;
				if (elementid != "")
				{
					if (document.all(document.Form1.FocusElement.value) + "" != "")
					{
						document.all(document.Form1.FocusElement.value).focus();
						if (document.all(elementid).createTextRange)
						{
							var r = document.all(elementid).createTextRange();
							r.moveStart('character',document.all(elementid).value.length);
							r.collapse();
							r.select();
						}
					document.Form1.FocusElement.value = "";

					}
				}
			}

			function setFocusElement(elementid)
			{
				//alert(elementid);
				if (document.Form1.FocusElement != null)
				{
				document.Form1.FocusElement.value = elementid;
				}
			}
			

		function popWindow(mypage, myname, scroll) {
	var w = 700;
	var h = 600;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function ShowProperty(url)
		{	
			var retval;
			var currentText="";
			
			currentText = 'Window'
					
			retval=window.showModalDialog(url,currentText,'dialogwidth:800px;dialogheight:500px;center: yes;status:no;scroll:yes');
		}  