// JavaScript Document
function openCenteredWindow(theURL,winName,winWidth,winHeight)
{
	var isNav = (navigator.appName == "Netscape");
	var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
	var isIE = (!isOpera)?(navigator.appName == "Microsoft Internet Explorer"):false;
	if(isOpera)
	{
		var screenWidth = window.innerWidth;
		var screenHeight = window.innerHeight;
	} 
	else if(isNav || isIE)
	{
		var screenWidth = screen.width;
		var screenHeight = screen.height;
	}
	var posLeft = (screenWidth/2) - ((winWidth+12)/2);
	var posTop = (screenHeight/2) - ((winHeight+59)/2);
	var features = "height=" + winHeight + ",width=" + winWidth + ",left=" + posLeft + ",top=" + posTop + ",location=no,menubar=no,scrollbars=no,status=no,toolbar=no";
	window.open(theURL,winName,features);
}