<!--
   function openframe(e){
      var LeftTD=document.parentWindow.parent.document.getElementById("LeftTD")
      var Switch=document.parentWindow.parent.document.getElementById("Switch")
      var topImg=document.parentWindow.parent.document.getElementById("topImg")
      if(e=='open'){LeftTD.style.display="none"}
      if(Switch!=null){
         if(LeftTD.style.display=="none"){
           LeftTD.style.display="block";
           Switch.src="../img/arrow_l.gif";
           Switch.title="关闭菜单";
           topImg.background="../img/line.gif";
         }else{
           LeftTD.style.display="none";
           Switch.src="../img/arrow_r.gif";
           Switch.title="打开菜单";
           topImg.background="";
         }
      }
   }
   function winopen(url){
       showW =screen.availWidth-11;
    	 showH =screen.availHeight-80;
        var w=window.open(url,"aa","status=yes,menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes,left=0,top=0,width="+showW+",height="+showH);

   }
   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=715;height=500;}
       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	winshow(url,page,title){
       var width=0;
       var height=0;
       if(page=='ygdw')  {width=800;height=577;}
       if(page=='tpf')   {width=800;height=570;}
       if(page=='hmd')   {width=600;height=410;}
       if(page=='ns')    {width=520;height=280;}
       if(page=='px')    {width=550;height=370;}
       if(page=='tj')    {width=600;height=390;}
       if(page=='jt')    {width=520;height=290;}
       if(page=='gzjl')  {width=550;height=320;}
       if(page=='ryjy')  {width=800;height=570;}
       if(page=='ryhmd') {width=600;height=380;}
       if(page=='sygl')  {width=800;height=570;}
       if(page=='htgl')  {width=800;height=570;}
       if(page=='grcb')  {width=500;height=360;}//个人参保
       if(page=='lhjy')  {width=500;height=360;}//灵活就业
       if(page=='jmdj')  {width=800;height=570;}
       if(page=='zwzp')  {width=800;height=570;}
       if(page=='qzzdch')  {width=800;height=570;}
       if(page=='zpdwgl')  {width=800;height=570;}
       if(page=='zpzwgl')  {width=800;height=570;}
       if(page=='qzryxx')  {width=800;height=570;}
       if(page=='jglygl')  {width=800;height=570;}
       if(page=='zwfind')  {width=600;height=500;}
       if(page=='zyfz')    {width=430;height=200;}
       if(page=='twxx')    {width=600;height=400;}
       if(page=='twtz')    {width=600;height=200;}
       //档案管理
       if(page=='damanage')  {width=500;height=400;}
       if(page=='ajmanage')  {width=500;height=400;}
       if(page=='fm')  {width=500;height=600;}
       //网上服务
       if(page=='addsb')  {width=800;height=400;}
       if(page=='yansign')  {width=800;height=500;}
       if(page=='newsb')  {width=300;height=300;}
       if(page=='addfromld')  {width=800;height=800;}
       if(page=='importfromxls')  {width=500;height=200;}

       //退休人员
       if(page=='txry')  {width=800;height=430;}
       if(page=='txryjl')  {width=600;height=300;}
       if(page=='txryjt')  {width=600;height=300;}

       if(screen.availWidth>=1024){
          if(page=='sygl' || page=='htgl' || page=='qzryxx' || page=='zpdwgl' || page=='zpzwgl' || page=='jglygl'){
             width=screen.availWidth;
             height=screen.availHeight;
          }else{
             width=width*1.1;height=height*1.1
          }
       }
       showx =(screen.availWidth-width)/2;
       showy =(screen.availHeight-10-height)/2;
       var r=window.showModalDialog("../sys/show.jsp?url="+url,[self,title==undefined?"":title],"dialogLeft:"+showx+";dialogTop:"+showy+";dialogWidth:"+width+"px;dialogHeight:"+height+"px; status:no;help:no");
       if(r==1){
          document.forms[0].submit();
       }
   }

   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 winwait(e,t){
        var mainDIV=document.getElementById("ifMain")
        if(mainDIV!=null){
            if(e=="open"){
               mainDIV.style.display="";
               var sptitle=ifMain.document.getElementById("sptitle");
               var sptotal=ifMain.document.getElementById("sptotal");
               if(sptitle!=null){
                  sptitle.innerText=t;
               }
               if(sptotal!=null){
                  sptotal.innerText="1";
               }
            }else if(e=="close"){
               mainDIV.style.display="none";
            }
            mainDIV.style.left=(parseInt(document.body.clientWidth)-parseInt(mainDIV.style.width))/2
            mainDIV.style.top=document.body.scrollTop+(parseInt(document.body.clientHeight)-parseInt(mainDIV.style.height))/2
        }
 }

 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;
//-->
