function NewWindow(mypage, myname, w, h, resizable, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'toolbar=no,status=no,scrollbars='+scroll+',resizable='+resizable+',height='+h+',width='+w+',top='+wint+',left='+winl+',dependent=yes';
	win = window.open(mypage, myname, winprops);
	win.window.focus();
}

function NewObjWindow(mypage, myname, w, h, resizable, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'toolbar=no,status=no,scrollbars='+scroll+',resizable='+resizable+',height='+h+',width='+w+',top='+wint+',left='+winl+',dependent=no';
	win = window.open(mypage, myname, winprops);
	win.window.focus();
	return win;
}
