function NewWindow(mypage, myname, w, h, scroll) {
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 showTop()
{
	//Position the topBox. In this example I am just centering it on the screen
	boxWidth = 500;
	boxHeight = 500;

	screenWidth=document.all?document.body.clientWidth:window.innerWidth;
	screenHeight=document.all?document.body.clientHeight:window.innerHeight;
	
	xPos = (screenWidth - boxWidth) * 0.5;
	yPos = (screenHeight - boxHeight) * 0.5;
	
	
	//document.getElementById('topbox').style.left=xPos;
	//document.getElementById('topbox').style.top=yPos;

	//Show the background overlay and topbox...
	document.getElementById('screenoverlay').style.visibility = 'visible';
	document.getElementById('topbox').style.visibility = 'visible';
}

function delayedShowTop(seconds)
{
	setTimeout("showTop()", seconds*1000);
}

function closeTop()
{
	//Hide the overlay and tobox...
	document.getElementById('screenoverlay').style.visibility = 'hidden';
	document.getElementById('topbox').style.visibility = 'hidden';
}
//-->
