//Centers a pop up window on any size browser window
function winPopup(mypage, myname, w, h, sc) {
	if (navigator.appVersion.indexOf("AOL") != -1)
	{
			newHeight = h + 25;
			newWidth = w + 25;
			winprops = 'height=' + newHeight + ',width=' + newWidth
			win = window.open(mypage, myname, winprops);
	}
	else
	{
		if (parseInt(navigator.appVersion) >= 4)
		{
			var offsetW = (screen.width - w) / 2;
			var offsetH = (screen.height - h) / 2;
			winprops = 'height='+ h +',width='+ w +',top='+ offsetH +',left='+ offsetW + ',scrollbars='+sc
			win = window.open(mypage, myname, winprops)
			win.window.focus();
		}
		else
		{
			newHeight = h + 25;
			newWidth = w + 25;
			winprops = 'height=' + newHeight + ',width=' + newWidth
			win = window.open(mypage, myname, winprops);
		}	
	}
}	

