
/**
 *	根据页面宽度，高度，地址，居中弹出页面
 */
 
function callhtm(URL,Width,Height)
{
	
	//Width = window.screen.width;
	//Height = window.screen.height;
	var l = ((window.screen.width-parseInt(Width))/2);
	var t = ((window.screen.height-parseInt(Height))/2);
	window.open(URL,'_blank','top='+t+',left='+l+', width='+Width+', height='+Height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	//window.showModalDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
	//window.showModelessDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 

}


function callSys(URL,Width,Height)
{
	//Width = window.screen.width;
	//Height = window.screen.height;
	var l = ((window.screen.width-parseInt(Width))/2);
	var t = ((window.screen.height-parseInt(Height))/2);
	window.open(URL,'_blank','top='+t+',left='+l+', width='+Width+', height='+Height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	//window.open(URL,'_blank','top='+t+',left='+l+', width='+Width+', height='+Height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	//window.showModalDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
	//window.showModelessDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
}


function callSysWithScroll(URL,Width,Height)
{
	//Width = window.screen.width;
	//Height = window.screen.height;
	var l = ((window.screen.width-parseInt(Width))/2);
	var t = ((window.screen.height-parseInt(Height))/2);
	window.open(URL,'_blank','top='+t+',left='+l+', width='+Width+', height='+Height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	//window.showModalDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
	//window.showModelessDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
}


function callSysBlank(URL,Width,Height)
{
	//Width = window.screen.width;
	//Height = window.screen.height;

	var l = ((window.screen.width-parseInt(Width))/2);
	var t = ((window.screen.height-parseInt(Height))/2);
	window.open(URL,'_blank','top='+t+',left='+l+', width='+Width+', height='+Height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	//window.showModalDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
	//window.showModelessDialog(URL,'_blank',"dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: "+t+"px; dialogLeft: "+l+"px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;"); 
}


/**
 *	判断该控件的值是否为数字，如果不是，设为0。
 */
function checkInt(t)
{
	if(isNaN(t.value))
	{
		t.value=0;
	}
}



/**
 *	帮助文件的页边距
 */
var thisUrl = document.URL;
if(thisUrl.indexOf("/help/")>-1)
{
	document.write("<style type='text/css'> <!-- "+
	               "body { margin-left: 50px;	margin-top: 50px; "+
	               "margin-right: 50px; margin-bottom: 50px; }-->"+
	               "</style>");
	
}
/**
 *	设置颜色；
 */
	function setColor(e)
	{
		eval(e);
	}

/**
 *	所有页面的标题
 */
document.title="中国深圳群文网";
