//
// modified by Tyler Clark on 3.10.2004 so popups will automatically center since width/height and screen size is pre-defined.
//
// example call:
// <a href="<%Dlink%>" onClick="NewWindow('440', '150', this.href);return false">Test Popup</a>
//
//function NewWindow(width,height,url) {
//	window.open(url,"PopUp","menubars=0,scrollbars=1,resizable=1,height="+height+",width="+width);
//	return false;
//}

//function NewWindow2(width,height,url) {
//	window.open(url,"PopUp","menubars=0,scrollbars=0,resizable=0,height="+height+",width="+width);
//	return false;
//}

function NewWindow(w,h,url){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars'
	win = window.open(url, "PopUp", winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//return false;
}

function NewWindow2(w,h,url){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars'
	win = window.open(url, "PopUp", winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//return false;
}
