
// EXAMPLE:
// centerPop('privacypolicy.htm',700,520)	// Display page of width/height in centered popup

function centerPop(myurl, wide, high){
	var horiz = (screen.width - wide) / 2;	// find horizontal position
	var vert = (screen.height - high) / 2;	// find vertical position
	var extras = 'height='+high+',width='+wide+',top='+vert+',left='+horiz+',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no';
	win = window.open(myurl,"",extras)
	if (parseInt(navigator.appVersion) >= 4) {win.window.focus();}
}