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=no'
	win = window.open(mypage, myname, winprops)

	if (
		parseInt(navigator.appVersion) >= 4) { win.window.focus(); 
	}
	
	win.document.open();
	win.document.writeln('<html>');
	win.document.writeln('<head>');
	win.document.writeln('<title>'+myname+'</title>');
	win.document.writeln('</head>');
	win.document.writeln('<body background="'+mypage+'" margin="0" padding="0">');
	win.document.writeln('</body>');
	win.document.writeln('</html>');
	win.document.close();
}
