<!--
function fPopUpDlg(endtarget,ctl,WINname,WINwidth,WINheight){
	
	showx =  WINwidth + 120  ; // + deltaX;
	showy = WINheight -50 ; // + deltaY;
	

	newWINwidth = WINwidth + 4 + 18;
	var features =
		'dialogWidth:'  + newWINwidth  + 'px;' +
		'dialogHeight:' + WINheight + 'px;' +
		'dialogLeft:'   + showx     + 'px;' +
		'dialogTop:'    + showy     + 'px;' +
		'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:yes;Resizeable=no';

	retval = window.showModalDialog(endtarget, WINname , features );
	if( retval != null ){
		ctl.value = retval;
	}else{
		//alert("canceled");
	}
}

function ShowModalWindow(endtarget,WINname,WINwidth,WINheight){
	var features =
		'dialogWidth:'  + WINwidth  + 'px;' +
		'dialogHeight:' + WINheight + 'px;' +
		'dialogLeft:100px;' +
		'dialogTop:50px;' +
		'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:yes;Resizeable=no';
	window.showModalDialog(endtarget, WINname , features );
}

function OpenSelectWindow(url,windowname){
    window.open(url,windowname,'left=80,top=80,height=400,width=600,toolbar=no,menubar=no,scrollbars=yes');
}

function OpenReportWindow(url,windowname){
    window.open(url,windowname,'left=50,top=50,height=400,width=700,toolbar=no,menubar=no,scrollbars=yes');
}

function OpenNewWindow(url,windowname){
    window.open(url,windowname,'');
}
//Edit by guwt
//增加弹出窗口的ID
function openWin(surl,winWidth,winHeight,id,scrollbar)
{
	if (scrollbar==""||scrollbar==null||scrollbar=="noscrollbar"){
		scrollbar = "scrollbars=no";
	}else{
		scrollbar = "scrollbars=yes";
	}
	winHeight = (winHeight==null||winHeight=="")?screen.availHeight:winHeight;
	winWidth  =(winWidth==null||winWidth=="")?screen.availWidth:winWidth;
	var features = 
	"top=" + (screen.availHeight-winHeight-30)/2 +
	",left=" + (screen.availWidth-winWidth-6)/2 +
	",height=" + winHeight+
	",width=" + winWidth+
	",toolbar=no,menubar=no," + scrollbar + ",resizable=yes,status=no"
	try{
		win = window.open(surl,id,features);
		win.focus();
	}catch(exception){
		alert("弹出窗口被拦截，要想正常使用本系统请允许本系统弹出窗口，或关闭广告拦截！");
		return false;
	}
}
//End of Edit by guwt
-->