1. <%@ page contentType="text/html;charset=GBK" %>  
  2. <html>  
  3. <head>  
  4.         <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />  
  5.     <meta http-equiv="Content-Type" content="text/html; charset=GBK">  
  6. </head>  
  7. <script language="JavaScript">  
  8.     function openMain()  
  9.     {  
  10.          mapWin = window.open('main.jsp', '_blank', 'left=0,top=0,width=screen.availWidth,height=screen.availHeight,menubar=no,location=no,scrollbars=no,toolbar=no,status=yes,titlebar=0,resizable=yes,tabbar=no,AddressBar=no,copyhistory=no');  
  11.       
  12.       
  13.         if (mapWin == null)  
  14.         {  
  15.             alert("注意: 要正常使用本系统,请关闭或删除您的浏览中拦截弹出窗口的功能或插件!");  
  16.             return;  
  17.         }  
  18.   
  19.         var larg = 0;  
  20.         var altez = 0;  
  21.         if (document.layers)  
  22.         {  
  23.             larg = screen.availWidth - 0;  
  24.             altez = screen.availHeight - 0;  
  25.         }  
  26.         else  
  27.         {  
  28.             larg = screen.availWidth + 8;  
  29.             altez = screen.availHeight + 8;  
  30.         }  
  31.         mapWin.resizeTo(larg, altez);  
  32.         mapWin.moveTo(-4, -4);  
  33.         shutwin();  
  34.     }  
  35.   
  36.     function shutwin()  
  37.     {  
  38.        // window.opener = 'abc';  
  39.        //   window.opener.close();  
  40.         window.opener = null;   
  41.         window.open("","_self"); //fix ie7   
  42.         window.close();  
  43.         return;  
  44.     }  
  45.     openMain();  
  46. </script>  
  47. </html>