function NewWindow(page) {
	OpenWin = this.open(page, "CtrlWindow","top=10,left=112,width=220,height=500,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
}
function openNewWin(page,pWidth,pHeight,pToolbar,pWinName,pFeatures) {
	var postop = 5,posleft = 5,vFeatures = pFeatures;
	if (pToolbar=="N") vToolbar = "no"; else  vToolbar = "yes";
	if (pFeatures=="" || pFeatures==null) vFeatures = "buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no";
	if (pWidth=="" || pWidth==null) v_width = screen.availwidth - 20;
	else {v_width = pWidth}
	if (pWinName=="" || pWinName==null) vWinName = "f_NewWin";
	else {vWinName = pWinName}
	posleft = (screen.availwidth - v_width) / 2;
	if (pHeight=="" || pHeight==null) v_height = screen.availheight - 100;
	else {v_height = pHeight}
	postop = (screen.availheight - v_height - 50) / 2;
	OpenWin = this.open(page, vWinName, "top="+postop+",left="+posleft+",width=" + v_width + ",height=" + v_height + ","+vFeatures+",toolbar=" + vToolbar);
	OpenWin.focus();
}