function CheckForm()
{
	if(document.Login.UserName.value=="")
	{
		alert("请输入用户名！");
		document.Login.UserName.focus();
		return false;
	}
	if(document.Login.Password.value == "")
	{
		alert("请输入密码！");
		document.Login.Password.focus();
		return false;
	}
	if (document.Login.CheckCode.value=="")
	{
		alert ("请输入您的验证码！");
      		document.Login.CheckCode.focus();
      		return(false);
   	}
}

function openScript(url)
{
	var Win = window.open(url,"UserControlPad");
}
function openScript2(url,width,height)
{
	var Win = window.open(url,"messpop",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
}
function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)    {
	var e = form.elements[i];
	if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
}

//更改字体大小
var status0='';
var curfontsize=12;
var curlineheight=20;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
  }
}

function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
  }
}
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}

function $(obj){return document.getElementById(obj)}
function ad_span(adId,spanId){if($(adId)){if($(spanId)){$(adId).innerHTML=$(spanId).innerHTML}}
if($(spanId)){$(spanId).innerHTML=""}}

