function NewWindow(mypage, myname, w, h, wint, winl, scroll, resizable, menubar, status, titlebar, toolbar, location) 
	{
		window.status = "open";
		if (wint == -1)
		{wint = (screen.height - h) / 2;}
		if (winl == -1)
		{winl = (screen.width - w) / 2;}
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+',menubar='+menubar+',status='+status+',titlebar='+titlebar+',toolbar='+toolbar+',location='+location;
		win = window.open(mypage, myname, winprops);
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}