/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2021-09-22 11:37:07 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import wiseoa.mail.jstl.*;
import IM.server.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import jun.db.util.*;
import wiseoa.mail.jstl.*;

public final class frame_002dheader_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(1);
    _jspx_dependants.put("/rightverify_loginneedtest.jsp", Long.valueOf(1476341414363L));
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest;

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
  
 
   //æ£æµæ¯å¦å¯¹æªç»å½ç¨æ·å¼æ¾
   User user_1211temp=User.getUserFromRequest( request);
   if (  user_1211temp.getId()<0 )
	 {
	   
	    System_BaseInfo gInfo= System_BaseInfo.getInstance(request);
	    if ( gInfo.GlobalConfig.get("openforlogineduser").toString().equals("1"))
		{
	    	
		    
		    String subpath=(String)session.getAttribute("wiseoaappsubpath" );
		    if ( subpath==null) subpath="";
		    String url=request.getRequestURI();
		    String qs= request.getQueryString();
		    if ( qs==null) qs="";
		    if ( !qs.equals("") ) qs="?"+qs;
		    url=jun.db.util.Escape.escape(url+qs); 
		    
		 	response.sendRedirect(  subpath+"/login.jsp?url="+url );
		 	return;
		}
	 }
 

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

    
	
	String s=	request.getRequestURL().toString();
	int p=s.lastIndexOf("/");
	if ( p>0)  s=s.substring(0, p);
	FF.pageContextSetAttribute(pageContext,"homeurl",s);
 
	System_BaseInfo gInfo=System_BaseInfo.getInstance(request);
	FF.pageContextSetAttribute(pageContext,"globalconfig", gInfo.GlobalConfig);
	  
	FF.pageContextSetAttribute(pageContext,"isonline",  IM.server.PushServer.isOnline(user_1211temp.getId()));

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<HTML>\r\n");
      out.write("  <head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write("    <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("    <TITLE></TITLE>\r\n");
      out.write("    \r\n");
      out.write("    <META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("    <META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("    <META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write("      \r\n");
      out.write("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">    \r\n");
      out.write("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/header.css\">\r\n");
      out.write("\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/popinfo.js\"></SCRIPT>\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t\r\n");
      out.write(" \r\n");
      out.write("<!--  服务器推送消息的客户端接收--> \r\n");
      out.write("     <script language='javascript' src='js/pushClient.js'></script>\r\n");
      out.write("     <script type=\"text/javascript\" src=\"js/json.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/jquery.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/zrpc.js.jsp\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"js/domutil.js\"></script>\r\n");
      out.write("    \r\n");
      out.write("\r\n");
      out.write("<script language='javascript'>\r\n");
      out.write("\r\n");
      out.write("    // 本函数是让chatApplet 调用的\r\n");
      out.write("\tfunction sendmail( url)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tparent.frames('mainFrame').location.href=(url);\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\twindow.onunload=function()\r\n");
      out.write("\t{\r\n");
      out.write("\t\t//jsrsExecute(\"servlet/wiseoa.LogoutRPC\", null, \"Logout\", \"\" ,false);\r\n");
      out.write(" \t}\r\n");
      out.write(" \t\r\n");
      out.write("\tfunction  ShowChatFrame(v)\r\n");
      out.write("\t{\r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write(" \t\t\t chat.ShowChatFrame(v);\r\n");
      out.write(" \t\t\t\r\n");
      out.write("\t\t}catch(Err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\talert('您需要下载并安装Jre');\r\n");
      out.write("\t\t}\r\n");
      out.write(" \t\t\t\r\n");
      out.write(" \t}\r\n");
      out.write(" \t\r\n");
      out.write("\t\r\n");
      out.write("\t//此函数用于给IM客户端动作执行回调，比如用于工作流的数量刷新\r\n");
      out.write("\tfunction WiseIMAction(action)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tDispatchAction( action);\r\n");
      out.write("\t \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tfunction DispatchAction( action)\r\n");
      out.write("\t{\r\n");
      out.write("\t    　\r\n");
      out.write("  \r\n");
      out.write("\t\t");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t//2010.04.12增加 :只在页面里加上onServerMessage函数就可以接收服务器推送的消息\r\n");
      out.write("\t\tonServerMessage(action);\r\n");
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif ( action==\"RefreshWorkFlow\") \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t RefreshWorkFlow();\r\n");
      out.write("\t\t\t return;\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\tvar s= extractValue( action , \"action\");\r\n");
      out.write("\t\t\r\n");
      out.write("\t \t\r\n");
      out.write("\t\tif ( s=='online')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t//alert( unescape(extractValue(action, \"info\")));\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\tif( s=='alert')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t//document.getElementById('messageContainer').innerHTML=unescape(extractValue(action, \"info\"));\r\n");
      out.write("\t\t\t//parent.mainFrameSet.rows=\"24,*\";\r\n");
      out.write("\r\n");
      out.write("\t\t     alert(unescape(extractValue(action, \"info\")));\r\n");
      out.write("\t\t}　\r\n");
      out.write("\r\n");
      out.write("\t　if( s=='message')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t//document.getElementById('messageContainer').innerHTML=unescape(extractValue(action, \"info\"));\r\n");
      out.write("\t\t\t//parent.mainFrameSet.rows=\"24,*\";\r\n");
      out.write("\r\n");
      out.write("\t\t     alert(unescape(extractValue(action, \"info\")));\r\n");
      out.write("\t\t}　\r\n");
      out.write("\t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("\t\r\n");
      out.write("\tfunction\tRefreshWorkFlow() //本函数还被flow_edit.jsp调用\r\n");
      out.write("\t{\r\n");
      out.write("\t     \r\n");
      out.write("\t\talert('refresh work count ');\r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write("\r\n");
      out.write("\t\t\tvar f=parent.document.getElementById('leftbar').contentWindow.frames('leftMainFrame');\r\n");
      out.write("\t\t\t\r\n");
      out.write(" \t  \t\tf.RefreshWorkCount() ;\r\n");
      out.write("\t\t}catch(err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t     \r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction\tRestoreTip(tip)  \r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   var  f= parent.frames('mainFrame');\r\n");
      out.write("\t\t \r\n");
      out.write("\t  \t\tf.RestoreTip(tip) ;\r\n");
      out.write("\t\t}catch(err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t     \r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction\tOptimizeTip(tip)  \r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   var  f= parent.frames('mainFrame');\r\n");
      out.write("\t\t \r\n");
      out.write("\t  \t\tf.OptimizeTip(tip) ;\r\n");
      out.write("\t\t}catch(err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t     \r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\tfunction\tBackupTip(tip)  \r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   var  f= parent.frames('mainFrame');\r\n");
      out.write("\t\t \r\n");
      out.write("\t  \t\tf.BackupTip(tip) ;\r\n");
      out.write("\t\t}catch(err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t     \r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction\t  onServerMessage(msg)  \r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   var  f= parent.frames('mainFrame');\r\n");
      out.write("\t\t \r\n");
      out.write("\t  \t\tf.onServerMessage(msg) ;\r\n");
      out.write("\t\t}catch(err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t     \r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction\tBackupProgressTip(tip)  \r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\ttry\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   var  f= parent.frames('mainFrame');\r\n");
      out.write("\t\t \r\n");
      out.write("\t  \t\tf.BackupProgressTip(tip) ;\r\n");
      out.write("\t\t}catch(err)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t     \r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("</script>\r\n");
      out.write(" \r\n");
      out.write("<style>\r\n");
      out.write("\r\n");
      out.write("A:link {\r\n");
      out.write("\tCOLOR: #0000cc;  TEXT-DECORATION: none\r\n");
      out.write("}\r\n");
      out.write("A:visited {\r\n");
      out.write("\tCOLOR: #0000cc;  TEXT-DECORATION: none\r\n");
      out.write("}\r\n");
      out.write("A:hover {\r\n");
      out.write("\tCOLOR: #0000cc; TEXT-DECORATION: none\r\n");
      out.write("} \r\n");
      out.write("A.highlight:link {\r\n");
      out.write("\tCOLOR: #0000cc; \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("</HEAD>\r\n");
      out.write("\r\n");
      out.write("<BODY  style=\"overflow:hidden; background-color:#ffff90\">\r\n");
      out.write("\r\n");
      out.write("<table border=0 width=100%>\r\n");
      out.write("<TR>\r\n");
      out.write("<TD ID=messageContainer height=24 width=\"99%\">\r\n");
      out.write("\r\n");
      out.write("</TD>\r\n");
      out.write("<TD><img src=\"image/close14.gif\"  title=\"关闭提示信息栏\" class=\"asbutton\" style=\"border:0\" onclick=\"parent.mainFrameSet.rows='0,*';\"> \r\n");
      out.write("</TD>\r\n");
      out.write("\r\n");
      out.write("</TR>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div id=old  style=\"display:none\">\r\n");
      out.write("\r\n");
      out.write(" <iframe id=\"jredownload\" style=\"display:none\" src=\"\"></iframe>\r\n");
      out.write(" \r\n");
      out.write(" <div  id= imcontainer></div>\r\n");
      out.write("\r\n");
      out.write("<TABLE class=\"header\" cellspacing=\"0\" cellpadding=\"0\"  >\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD   class=\"logo\"  ><IMG src=\"image/logo.jpg\" ></TD>\r\n");
      out.write("    <TD   class=\"mainband\">\r\n");
      out.write("      <TABLE class=HM  cellspacing=\"0\" cellpadding=\"0\" >\r\n");
      out.write("        \r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD class=c1 height=\"42\"   background=\"image/topnav2m.gif\">");
      out.print(System_BaseInfo.getInstance(request).HomeTitle);
      out.write("</TD>\r\n");
      out.write("          <TD class=c2 background=\"image/topnav2r.gif\">&nbsp;</TD>\r\n");
      out.write("          <TD class=c3  background=\"image/topnav2m2.GIF\">&nbsp;</TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("\t\t<TR>\r\n");
      out.write("          <TD  height=\"20\" colspan=\"2\" align=\"left\" background=\"image/topnav1m.gif\" norepeat >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r\n");
      out.write("         \r\n");
      out.write("          <TD class=c3  background=\"image/topnav1m2.GIF\">&nbsp;</TD>\r\n");
      out.write("\t\t</TR>\r\n");
      out.write("      </TABLE>\r\n");
      out.write("    </TD>\r\n");
      out.write("    <TD align=\"right\" class=\"infoband\"> \r\n");
      out.write("      <TABLE width=\"125\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-size:12px\">\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD height=\"24\" ><img src=\"image/public.gif\" width=\"16\" height=\"16\" align=\"absmiddle\">&nbsp;<a href='index.jsp?&reload=1' target='_top'>重新登录</a></TD>\r\n");
      out.write("    <TD align=\"center\"><img src=\"image/public2.gif\" width=\"16\" height=\"16\" align=\"absmiddle\">&nbsp;<a href='servlet/wiseoa.Logout' target='_top'>注销</a></TD>\r\n");
      out.write("  </TR>\r\n");
      out.write("  <TR>\r\n");
      out.write("\r\n");
      out.write("<TD width=\"77\" height=\"24\">  \r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("     \r\n");
      out.write("\r\n");
      out.write("    </TD>\r\n");
      out.write("    <TD width=\"48\" align=\"center\"><img src=\"image/java.gif\" width=\"16\" height=\"16\" border=\"0\" align=\"absmiddle\">&nbsp;<a href=\"jre5.exe\" target='_blank' title=\"如果无法使用即时能信，请点击这里安装Java运行环境\">JRE5</a></TD>\r\n");
      out.write("  </TR>\r\n");
      out.write("</TABLE>\r\n");
      out.write(" \r\n");
      out.write("    </TD>\r\n");
      out.write("  </TR>\r\n");
      out.write("  <TR >  \r\n");
      out.write("    <TD  class=\"line\"   colspan=\"3\"  >\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("     </TD>\r\n");
      out.write("  </TR>\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("<iframe id = flowformapplet   width=0 height=0>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("</iframe> \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("</div> <!-- end of old  -->\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT LANGUAGE=\"VBScript\">\r\n");
      out.write(" \r\n");
      out.write(" sub jretest_old()\r\n");
      out.write(" \r\n");
      out.write("    exit sub \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("   on error resume next\r\n");
      out.write("    dim  jre\r\n");
      out.write("\r\n");
      out.write("    jre   =   jreInstalled(\"JavaPlugin\")  \r\n");
      out.write("    \r\n");
      out.write(" \r\n");
      out.write("    If  not   ( jre    )   Then\r\n");
      out.write("        if  msgbox(\"系统运行需要Jre 支持，需要自动下载并安装吗?\",1, \"提醒\" )=1 then\r\n");
      out.write("                 msgbox \"在接下来的提示窗口中，请点击“运行”。在安装完Jre后，请关闭所有浏览器窗口，并重新打开浏览器。\"\r\n");
      out.write("\t\t\t\tdocument.getElementById(\"jredownload\").src=\"upload/jre.exe\"\r\n");
      out.write("         end if\r\n");
      out.write("   else\r\n");
      out.write("         window.status=\"检测到Java运行环境已经安装\"\r\n");
      out.write("   End If\r\n");
      out.write("  end sub\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("   function  jreInstalled( jre)\r\n");
      out.write("\t\ton error resume next\r\n");
      out.write("         dim obj\r\n");
      out.write("         set obj= CreateObject(jre)  \r\n");
      out.write("\t\t if ( err.number>0) then msgbox err.description\r\n");
      out.write("         jreInstalled = IsObject( obj)\r\n");
      out.write("         set obj=nothing\r\n");
      out.write("    \r\n");
      out.write("   end function\r\n");
      out.write("\r\n");
      out.write("   \r\n");
      out.write("\r\n");
      out.write("   </SCRIPT>\r\n");
      out.write("   \r\n");
      out.write("   <script language=\"javascript\">\r\n");
      out.write("    ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("\r\n");
      out.write("   function loadFlowFormCache()\r\n");
      out.write("  {\r\n");
      out.write("       \r\n");
      out.write("       document.getElementById('flowformapplet').src=\"flowform_cache.htm\";\r\n");
      out.write("\t  \r\n");
      out.write(" }\r\n");
      out.write("\t \r\n");
      out.write("\r\n");
      out.write("   /*\r\n");
      out.write("     2008.08.20  当使用多于１个长连接时，响应会非常慢。因此在检索到已经存在一个连接时，不要再建立连接\r\n");
      out.write("    这个检测是通过看online标记来实现的。这个不是非常严谨。因为当每一次进入工作台时，建立长连接，\r\n");
      out.write("    如果此时关闭页面，并再次进入，由于online 标记有１分钟的延后性，这导致了再次进入时，online还是true\r\n");
      out.write("    从而阻止了长连接。这样反而就失去了与pushserver的连接。　\r\n");
      out.write("\r\n");
      out.write("    所以，还需要一个定时的轮询，询问服务器，自已是不是还有长连接，如果没有了，那么建立它\r\n");
      out.write("\r\n");
      out.write("    所以综合方案时：使用长连接以实现服务器推的功能。并使用轮询连来检测是不是存在有效的长连接\r\n");
      out.write("   \r\n");
      out.write("   */\r\n");
      out.write("\t  \r\n");
      out.write("\t window.onload=function()\r\n");
      out.write("\t {\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t// 在webSphere下会导致服务器响应慢 ,2012.11.06,所以暂时去掉了　onlineCheck\r\n");
      out.write("\t\t// 找到原因：是websphere 线程池设置太小，原来设置成５０，当在线用户　４０多人时，就很慢了\r\n");
      out.write("\t\t \r\n");
      out.write("\t   ");
      if (_jspx_meth_c_005fif_005f2(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t   \r\n");
      out.write("\t\t \r\n");
      out.write("\t\t //不要１０秒检测一次，　在WEBSPHERe下会导致浏览器卡死\r\n");
      out.write("\t\t// setInterval ( onlineCheck , 10*1000);\r\n");
      out.write("\r\n");
      out.write("\t\t");
      if (_jspx_meth_c_005fif_005f3(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t }\r\n");
      out.write("\t  \r\n");
      out.write("\r\n");
      out.write("\t  function jreTest()\r\n");
      out.write("\t    {\r\n");
      out.write("\t\t   return;\r\n");
      out.write("\t\t   \r\n");
      out.write("\t        var applet=document.getElementById('jretestapplet');\r\n");
      out.write("\t        var b= applet;\r\n");
      out.write("\t\t\tif( !applet)\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\tb=false;\r\n");
      out.write("\t\t\t}else\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\ttry\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\tb=applet.jreInstalled();\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t}catch(err)\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t\tb=false;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t    \t if (!b )\r\n");
      out.write("\t\t\t {\r\n");
      out.write("\t\t\t\t if ( confirm(\"系统运行需要Jre 支持，需要自动下载并安装吗?\"  ))  \r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t                alert( \"在接下来的提示窗口中，请点击“运行”。在安装完Jre后，请关闭所有浏览器窗口，并重新打开浏览器。\");\r\n");
      out.write("\t\t\t\t\tdocument.getElementById(\"jredownload\").src=\"upload/jre.exe\"\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t }else\r\n");
      out.write("\t\t\t { \r\n");
      out.write("\t     \t\twindow.status=\"检测到Java运行环境已经安装\"\r\n");
      out.write("\t  \t\t }\r\n");
      out.write("\r\n");
      out.write("\t    }\r\n");
      out.write("    \r\n");
      out.write("\r\n");
      out.write("      function onlineCheck()\r\n");
      out.write("      {\r\n");
      out.write("           \r\n");
      out.write("  \r\n");
      out.write("    \t pushClient.init(\"\"); //注册接收服务端推送的 无类型的消息\r\n");
      out.write(" \t     pushClient.onMessage=function(msg)\r\n");
      out.write(" \t     {\r\n");
      out.write(" \t          WiseIMAction( msg);\r\n");
      out.write(" \t     };\r\n");
      out.write("      }\r\n");
      out.write("     \r\n");
      out.write("   </script>\r\n");
      out.write("   \r\n");
      out.write("  \r\n");
      out.write("   \r\n");
      out.write("</BODY>\r\n");
      out.write("</HTML>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /frame-header.jsp(87,2) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id>0  && globalconfig.autocheckjre=='1'  }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" \r\n");
        out.write(" \t\t\tdocument.getElementById('jretestapplet').log(\"服务器日志:\"+action); //显示服务器端的日志\r\n");
        out.write("\t\t");
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent(null);
    // /frame-header.jsp(359,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id>0  && globalconfig.autocheckjre=='1'  }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" \r\n");
        out.write("       // setTimeout( \"loadFlowFormCache();\", 5*1000);\r\n");
        out.write("   ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f2.setParent(null);
    // /frame-header.jsp(392,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${globalconfig.pushserver==1 }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag();
    if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" \r\n");
        out.write("\t　   onlineCheck( );\r\n");
        out.write("\t   ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f3(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f3.setParent(null);
    // /frame-header.jsp(400,2) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id>0  && globalconfig.autocheckjre=='1'  }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag();
    if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" \r\n");
        out.write("\t \r\n");
        out.write("\t//\tsetTimeout( jreTest  , 20*1000);\r\n");
        out.write("\t\t ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
    return false;
  }
}
