function showmenu(mid,min)
{
   //menu01.style.left = ((screen.width)/2-196);    
   //menu01.style.display = "" ;
   if (document.body.offsetWidth<=800) {
   mid.style.left = ((800)/2+min);
   }else{
   mid.style.left = ((document.body.offsetWidth)/2+min);
   }
   //alert(document.body.offsetWidth);
   mid.style.display = "" ;
}

function hidemenu()
{
   menu01.style.display = "none" ;
   menu02.style.display = "none" ;
   menu03.style.display = "none" ;
  
}

  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.bgColor = clrOver;
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.bgColor = clrIn;
	}
  }

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function check(myform)
{
  if(myform.userid.value=="")
  {
      alert("对不起，用户名不能为空");
      myform.userid.focus();
      return false;
  }
   if(myform.password.value=="")
  {
      alert("对不起，密码不能为空");
      myform.password.focus();
      return false;
  }
   if(myform.checkcode.value=="")
  {
      alert("对不起，验证码不能为空");
      myform.checkcode.focus();
      return false;
  }
      return true;
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function bookmarkit(){
window.external.addFavorite('http://spzx.weifang.gov.cn','公共服务中心在线服务平台'
)}
function check1(myform)
{

  if(myform.Applynum.value=="")
  {
      alert("请输入办件编号！");
      myform.Applynum.focus();
      return false;
  }
  if(myform.password.value=="")
  {
      alert("请输入办件密码！");
      myform.password.focus();
      return false;
  }
}
function checkquery2(query)
{  

  if(query.code.value.length!=10 && query.code.value.length!=14)
  {
      alert("请输入正确的办件编号");
      query.code.focus();
      return false;
  }else{
  if (query.code.value.length==10)
  {
   window.open('serviceassist/infoview.jsp?id='+query.code.value)  
  }else
  if (query.code.value.length==14)
  {
   window.open('serviceassist/query.jsp?id='+query.code.value)      
  }else 
   return true;
  }  
} 
function checkquery(query)
{

  if(query.param.value=="")
  {
      alert("请输入查询条件！");
      query.param.focus();
      return false;
  }
  return true;
}
