function NW(mypage, myname, w, h) {
	if (w > screen.width) {
		w = screen.width - 40;
	}
	if (h > screen.height) {
		h = screen.height - 100;
	}
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2 - 30;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes';
	win = window.open(mypage, myname, winprops);
	win.window.focus();
}

