/*
	This JavaScript is a simple little JS that gets the current screen size and then
	pops up a window that in centered regardless of the screen res.
	
	Example usage:
					         URL              LABEL        W     H    SCRL
	javascript:popWin('whateverpage.htm' , 'windowname' , 200 , 120 , 'no')
	
	Bill Killillay
	Jan 5, 2002
	bill@killillay.com
*/

function popWin(url, label, width, height, scroll) {
	var Xcord = (window.screen.width-width)/2;
	var Ycord = (window.screen.height-height)/2;
	window.open(url, label, "width="+width+",height="+height+", top="+Ycord+", left="+Xcord+", toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars="+scroll+", resizable=yes");
}