<html>
<head>
+<link rel="shortcut icon" href="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>Http Keep-Alive</title>
-<script type="text/javascript">
-
-//<!--
-function createXMLHttpRequest() {
- try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {}
- try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {}
- try { return new XMLHttpRequest(); } catch(e) {}
- alert("XMLHttpRequest not supported");
- return null;
-}
-
-function onTimeout()
-{
- if(httpObj.readyState!=4){
- document.getElementById("dispmsg").innerHTML = 'ERROR-01';
- connect=0;
- }
-
- if(connect==1){
- sendHello();
- setTimeout('onTimeout()', timeInterval);
- }
-}
-
-function sendHello(){
-
- // http communication object
- httpObj=createXMLHttpRequest();
- httpObj.onreadystatechange = displayResponse;
-
- try{
- httpObj.open("GET","%%HTTPHELLOURL%%"+Math.random(),true);
- }catch(e){
- document.getElementById("dispmsg").innerHTML = 'ERROR-02';
- connect=0;
- }
-
- httpObj.send(null);
-}
-
-function displayResponse()
-{
- if(httpObj.readyState==4){
- if(httpObj.responseText=="hello"){
- today=new Date;
- hh=today.getHours(); mm=today.getMinutes();
- if(hh<10)hh='0'+hh; if(mm<10)mm='0'+mm;
- document.getElementById("dispmsg").innerHTML = hh+':'+mm;
- }
- else{
- document.getElementById("dispmsg").innerHTML = 'ERROR-03';
- connect=0;
- }
- }
-}
-
-function init()
-{
- connect=1;
- sendHello();
-
- // http request after timeInterval(ms)
- timeInterval =%%HTTPHELLOINTERVAL%%;
-
- // get next text after some delay
- setTimeout('onTimeout()', timeInterval);
-}
-//-->
-</script>
+<script type="text/JavaScript" src="%%HTTPKEEPJSURL%%"></script>
+<script type="text/JavaScript" src="%%MD5JSURL%%"></script>
</head>
-<body>
+<body onunload="endHttpkeep();">
+
+
+<p>You can use the network.</p>
+<p>When you'd like to finish using the network, close your WEB browser.
+You will be disconnected from the network automatically.</p>
-<script language="JavaScript">
-<!--
- init();
-//-->
-</script>
<noscript>
<p><b>JavaScript is disabled. Change it.</b></p>
</noscript>
-<p>You can use the network.</p>
-<p>When you finish to use the network, stop your WEB browser.
-You will be disconnected from the network automatically.</p>
+<p>
+<TABLE cellSpacing=0 cellPadding=10
+align=center bgColor=lightyellow border=1>
+<TR><TD>
+<b>
+<P align=center>
+If you use this window for browsing or close this page,
+the network will be closed.<p>
+
+<P align=center>
+Click below button to create a new window for browsing.</p>
+
+<FORM onclick='window.open("%%STARTURL%%")'>
+<div align=center><INPUT TYPE="button" VALUE=" Portal Site > "><br>
+( If click does not work, try ctrl+click or shift+click )
+</div>
+</FORM>
+
+<noscript>
+<p align=center><a href="%%STARTURL%%" target=_blank>Portal Site></a></p>
+</noscript>
+
+<P align=center>
+Or, minimize this page and load other network programs.</p>
+</b>
+</TD></TR>
+</TABLE>
+</p>
<hr />
<p>
-<div align="center">
+<div id="watchdog" align="center">
<table width="60%" bgcolor="yellow" >
<tr>
-<td align='center'>Authenticated for networt use </td>
+<td align='center'>Authenticated for network use </td>
<td align='center'>User name %%USERID%%</td>
<td align='center'>Confirmation </td>
<td align='center'><div id="dispmsg">Starting...</div> </td>
<hr />
-<p>If ERROR is shown at the rightside of above bar,
-click <a href="%%TERMINATEURL%%"><b>TERMINATE</b></a>,
- close your browser, and try to select JAVA in authentication page.</p>
+<p>If [Error] is shown between above two lines or
+other malfunction has occured, please use another page.
+Should your browser display any abnormal behavior,
+please close it and try again.
+If you enter a value in duration field of authentication page,
+the network can be used for that duration of time.</p>
-<script language="JavaScript">
-!--
- window.open("%%STARTURL%%","window1");
+<script type="text/JavaScript">
+//<!--
+ window.open("%%STARTURL%%");
+
+ initHttpkeep("%%HTTPHELLOURL%%","%%SESSIONID%%","%%COOKIENAME%%");
//-->
</script>
-<table bgcolor="lightyellow" border="1">
-<tr><td>
-Please leave this window as it is (or minimized), and work on another window.
-If another working window is not popped up,
-click <a href="%%STARTURL%%" target="_blank"><h3>[Start Page]</h3></a>
- to open.
-</td></tr>
-</table>
+<div id="debug">
</body>
</html>