function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes';''
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus();
	}
}
function OpenNewWindow(mypage, myname, w, h, scroll) {
	winprops = 'height='+h+',width='+w+',top=0,left=0,scrollbars='+scroll+',resizable=yes';''
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}
function PrintWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,toolbar=yes';''
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}
function CustomWindow(mypage, myname, w, h, scroll, resize, tools, locate, stat, menu) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+', resizable='+resize+',toolbar='+tools+',location='+locate+',statusbar='+stat+',menubar='+menu+''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}
