// Retrieves browser height and width of inner window
<!--                               Hide from non-JS browsers
	var scnWid,scnHei;
	if (self.innerHeight) // all except Explorer
	{
		scnWid = self.innerWidth;
		scnHei = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		scnWid = document.documentElement.clientWidth;
		scnHei = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		scnWid = document.body.clientWidth;
		scnHei = document.body.clientHeight;
	}
	
	function centerMsgWindow(winName) {
		var thisWindow = document.getElementById(winName);
		//alert(thisWindow.id);
		var errHei = thisWindow.offsetHeight; //alert(errHei);
		var errWid = thisWindow.offsetWidth; //alert(errWid);
		var midHei = scnHei/2; var midWid = scnWid/2;
		document.getElementById(winName).style.top = midHei-(errHei/2) + "px";
		document.getElementById(winName).style.left = midWid-(errWid/2) + "px";
		if (winName == "errorMsgLayer") { autoCloseMsgWindow(winName); }
		}
	
	var windowTimer = 10;
	
	function autoCloseMsgWindow(winName) {
		windowTimer--;
		if (windowTimer <= 0) {
			document.getElementById(winName).style.display = "none";
			document.getElementById(winName).style.visibility = "hidden";
			}
		a = "autoCloseMsgWindow('" + winName + "')";
		setTimeout(a,1000);
		}
// -->
document.write('');
document.write('');