<!--
   function cwinopen(url,title,width,height){
       if (title=="undefined") {title="无定义";}
       if (width=="undefined") {width=screen.availWidth-11;}
       if (height=="undefined") {height=screen.availHeight-80;}
       var wx =(screen.availWidth-width)/2;
       var wy =(screen.availHeight-10-height)/2;
       //打开新窗口
       var objw=window.open(url,title,"status=yes,menubar=yes,toolbar=yes,resizable=yes,left="+wx+",top="+wy+",width="+width+",height="+height);
   }
   function cwinclose() {
       this.close();//关闭当前窗口
   }
   function cwinreload() {
       this.close();//关闭当前窗口
       //重新刷新父窗口
       opener.document.forms[0].submit();
   }
   function cwinrefresh() {
       //重新刷新当前窗口
       document.forms[0].submit();
   }
   function cwinprint(url,ptype,pname,width,height){
       if (ptype=="undefined") {ptype=1;}
       if (pname=="undefined") {pname="";}
       if (width=="undefined") {width=screen.availWidth-11;}
       if (height=="undefined") {height=screen.availHeight-80;}

       var wx =(screen.availWidth-width)/2;
       var wy =(screen.availHeight-10-height)/2;

       url=url+"&ptname="+pname;
       if(ptype==1){
          var iind = url.indexOf("?");
          var ilen = url.length;
          if (iind != -1) {url = url.substring(0,iind)+"&"+url.substring(iind+1,ilen);}
          var objw=window.open("../sys/print.jsp?url="+url,"","status=no,menubar=no,toolbar=no,resizable=no,edge=raised,scrollbars=yes,width="+width+",height="+height+",left="+wx+",top="+wy);
       }else{
          var objw=window.open(url,"","status=yes,menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes");
       }
   }
   function switchframe(e){
      var leftTD;
      var switchImg;
      var topImg;
      if (e=='current') {//当前网页调用
         leftTD=document.getElementById("leftTD");
         switchImg=document.getElementById("switchImg");
         topImg=document.getElementById("topImg");
      } else {//子网页调用
         leftTD=parent.document.getElementById("leftTD");
         switchImg=parent.document.getElementById("switchImg");
         topImg=parent.document.getElementById("topImg");
      }
      if(switchImg!=null){
         if(leftTD.style.display=="none"){
           leftTD.style.display="block";
           switchImg.src="../img/arrow_l.gif";
           switchImg.title="关闭菜单";
           topImg.background="../img/line.gif";
         }else{
           leftTD.style.display="none";
           switchImg.src="../img/arrow_r.gif";
           switchImg.title="打开菜单";
           topImg.background="../img/line.gif";
         }
      }
   }
   function openframe(e){
      var leftTD;
      var switchImg;
      var topImg;
	  
      if (e=='current') {//当前网页调用
         leftTD=document.getElementById("leftTD");
         switchImg=document.getElementById("switchImg");
         topImg=document.getElementById("topImg");
      } else {//子网页调用
         leftTD=parent.document.getElementById("leftTD");
         switchImg=parent.document.getElementById("switchImg");
         topImg=parent.document.getElementById("topImg");
      }
      if (e=='current') {//当前网页调用
         if (switchImg!=null){
            if (leftTD.style.display=="none"){
               leftTD.style.display="block";
               switchImg.src="../img/arrow_l.gif";
               switchImg.title="关闭菜单";
               topImg.background="../img/line.gif";
            }else{
               leftTD.style.display="none";
               switchImg.src="../img/arrow_r.gif";
               switchImg.title="打开菜单";
               topImg.background="../img/line.gif";
            }
         }
      } else {//子网页调用
         if (switchImg!=null){
            leftTD.style.display="block";
            switchImg.src="../img/arrow_l.gif";
            switchImg.title="关闭菜单";
            topImg.background="../img/line.gif";
         }
      }
   }
   ////////////////////////////////////////////////////////////////////////////
   function winshow(url,title,width,height){
      if (title=="undefined") {title="无定义";}
      if (width=="undefined") {width=screen.availWidth-11;}
      if (height=="undefined") {height=screen.availHeight-80;}
      wx =(screen.availWidth-width)/2;
      wy =(screen.availHeight-10-height)/2;
      var ret=window.showModalDialog("../sys/show.jsp?url="+url,[self,title],"dialogLeft:"+wx+";dialogTop:"+wy+";dialogWidth:"+width+"px;dialogHeight:"+height+"px; status:no;help:no");
      if(ret==1){
         document.forms[0].submit();
      }
   }

   function winprint(url,p,page){
       var width=0;
       var height=0;
       if(page=='syzbd') {width=700;height=500;}
       if(page=='htgl')  {width=700;height=500;}
       if(page=='jyk')   {width=250;height=390;}
       if(page=='syz')   {width=610;height=480;}
       if(page=='tpf' || page=='retpf')   {width=710;height=395;}
       if(page=='wgrjy')  {width=720;height=550;}
       if(page=='dwzp')   {width=screen.availWidth-11;height=screen.availHeight-80;}
       if(page=="dw")     {width=715;height=500;}
       if(page=="txrylxk")  {width=350;height=480;}
       showx =(screen.availWidth-width)/2;
       showy =(screen.availHeight-10-height)/2;
       url=url+"&p1="+page;

       var popupMenu=document.parentWindow.parent.document.getElementById("PopupMenu");
       if(popupMenu!=null) popupMenu.style.display="none";
       if(p==1){
          var a=window.open("../sys/print.jsp?url="+url,"","status=no,menubar=no,toolbar=no,resizable=no,edge=raised,scrollbars=yes,width="+width+",height="+height+",left="+showx+",top="+showy);
       }else{
          var a=window.open(url,"","status=yes,menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes");
       }
   }
   function winview(url){
       showW =screen.availWidth-11;
       showH =screen.availHeight-80;
       var v=window.open(url,"","status=yes,menubar=no,toolbar=yes,resizable=yes,left=0,top=0,width="+showW+",height="+showH);
   }
   function winshown(url,page,title){
       var width=600;
       var height=400;

       showx =(screen.availWidth-width)/2;
       showy =(screen.availHeight-10-height)/2;
       window.showModalDialog("../sys/win.jsp?url="+url,[self,title==undefined?"":title],"dialogLeft:"+showx+";dialogTop:"+showy+";dialogWidth:"+width+"px;dialogHeight:"+height+"px; status:no;help:no");
   }

   function winreload(rel,req){
       with(window.dialogArguments[0].document.forms[0]){
           if(rel=='reload'){
              if(req=='tpf'){hidoption.value='mx';}
              if(req=='sygl'){hidoptiontjlx.value='page3';}
              if(req=='grddmx'){hidoption.value='mx';}
              submit();
           }
      }
      window.close();
   }
   function showPoput(e,showObject,menuName,popupWidth,popupHeight,p1,p2,p3,p4,p5,p6,p7){
       var popupMenu=document.getElementById("PopupMenu");
       if(popupMenu!=null){
          if(e!="show"){
             if(event.srcElement.name!="btnprint"){
                popupMenu.style.display="none";
             }
          }else{
             popupMenu.style.display="block";
             popupMenu.src="../sys/popup.jsp?mn="+menuName+"&p1="+p1+"&p2="+p2+"&p3="+p3+"&p4="+p4+"&p5="+p5+"&p6="+p6+"&p7="+p7;
             popupMenu.style.width=popupWidth;
             popupMenu.style.height=popupHeight;
             popupMenu.style.left=event.clientX-parseInt(popupMenu.style.width)-10;
             popupMenu.style.top=document.body.scrollTop+event.clientY;

          }
       }
   }

 function SrcollNavigation(){
   if(document.getElementById("_hidSmartNavigation")!=null){
      document.forms[0]._hidSmartNavigation.value=document.body.scrollTop;
   }
   winwait('scroll',null)
 }
 function LoadNavigation(){
   if(document.getElementById("_hidSmartNavigation")!=null){
      document.body.scrollTop=document.forms[0]._hidSmartNavigation.value;
   }
   var strHtml="<iframe id='ifMain' src='../sys/wait.jsp'  style='display:none;LEFT: 0; WIDTH: 370px; POSITION: absolute; TOP: 0px; HEIGHT: 80px'  frameBorder=0 marginheight=0 marginwidth=0></IFRAME>";
   document.body.insertAdjacentHTML("afterBegin",strHtml);
 }
 //document.onclick=showPoput;
 //window.onscroll=SrcollNavigation;
 //window.onload=LoadNavigation;

  //正式
  function getIEVersion() {
    var ua = navigator.userAgent
    var IEoffset = ua.indexOf("MSIE ");
    return parseFloat(ua.substring(IEoffset+5,ua.indexOf(";",IEoffset)));
  }
  var isIE4 = ((navigator.appName.indexOf("Microsoft")==0 && parseInt(getIEVersion())>=4));
  var isW3C = (document.documentElement)?true:false;
//-->