function NewWindow(mypage, myname, w, h, scroll) {
	if (h>screen.height-60) {
		h = screen.height-60;
	}
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2-60;
	if (wint<0) {
		wint = 0;
	}
	var scrollbars = 'scrollbars';
	if (scroll == 'no') {
		scrollbars = '';
	}
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,'+scrollbars;
	var win = window.open(mypage, myname, winprops);
	win.focus();
}
