﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--base href="$$BASE_URL$$"-->
<title>PortalProtect 2.5</title>
<link href="css/trend-style-new.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="javascripts/localization.js"></script>
<script language="JavaScript" src="javascripts/trend-ui-new.js"></script>
<script language="JavaScript" src="javascripts/StringTransform.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
//Check frameset
var tempFramesetName = window.name;
var pageURL = "../PortalProtect/";


function initCheck() 
{
	if(pageURL.indexOf("Page")==-1&&pageURL.indexOf("?")==-1)
	    pageURL = pageURL +"?Page=session_expired.htm";
	
	if(tempFramesetName != "" || tempFramesetName.length>0){
        if(tempFramesetName == "smex_top"){
            window.parent.location.href = pageURL;
        }
        else if(tempFramesetName == "smex_left" || tempFramesetName == "smex_main"){
            window.parent.parent.location.href = pageURL;
        }
		else if(tempFramesetName =="ifmResult")
		   window.parent.parent.location.href = pageURL;
    }
   
   document.getElementById("main_login").style.display=(tempFramesetName.indexOf("SM")==-1 && tempFramesetName.indexOf("RTM")==-1)?"":"none";
   document.getElementById("subordinate").style.display=(tempFramesetName.indexOf("SM")>-1 || tempFramesetName.indexOf("RTM")>-1)?"":"none"; 
	
	if(tempFramesetName.indexOf("SM")>-1 && tempFramesetName.indexOf("RTM")>-1)
	{
		document.getElementById("id_name").focus();
	}
	document.location.href=pageURL;
}

function jsSubmit() {
	var sAccount = document.getElementById("id_name").value;
	var sPassword = document.getElementById("id_pwd").value;
	var sLogonInfo = StringTransform(sAccount + "\t" + sPassword);
	var myLoginForm = document.createElement("form");
	var inputAccoutPassword = document.createElement("input");
		
	myLoginForm.method= "post" ;
	myLoginForm.action = "cgiDispatcher.exe?Page=SESSION_LOGIN_REQUEST";

	inputAccoutPassword.setAttribute("name", "AUTH_NONCE_REPLY");
	inputAccoutPassword.setAttribute("value", sLogonInfo);
	myLoginForm.appendChild(inputAccoutPassword);
	
	document.body.appendChild(myLoginForm);
	myLoginForm.submit();
	document.body.removeChild(myLoginForm);

	return false;
}


function jsCloseWin(){
    try{
        window.opener.location.href = pageURL;
    }
    finally{ 
        window.close(); 
    }
}
//-->
</script>
</head>

<body style="margin:0" onload="initCheck();">
<form method="post" onsubmit="return jsSubmit();">
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%" id="main_login" style="display:none">
<tr><td colspan="3" align="center">
	<!--||AP Login||-->
	<table width="100%" border="0" cellpadding="0" cellspacing="0" height="60%">
	<tr><td>
			<table border="0" cellpadding="0" cellspacing="0" align="center" height="100%" width="100%">
			<tr><td align="center">
			    <table border="0" cellpadding="0" cellspacing="0" align="center" width="525">
			    <tr><td height="40"></td></tr>
			    <tr><td><img src="images/ap_logo.gif"></td></tr>
			    <tr><td height="5"></td></tr>
			    <tr><td><table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
			            <tr><td width="20"><img src="images/login_titlebar_left.gif" /></td>
			                  <td width="485" class="login-table-title" background="images/login_titlebar_back.gif">LOGIN</td>
			                  <td width="20"><img src="images/login_titlebar_right.gif" /></td></tr> 
			    <tr><td colspan="3" class="login-table-content"><table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
			                    <tr><td colspan="2" height="20"><div id="id_status"></div></td></tr>
			                    <tr><td colspan="2" class="text" nowrap><img src="images/icon_warning.gif" class="vAlignMid"/>
			                        <font color="red">Console session expired.</font></td></tr>
			                    <tr><td colspan="2" height="5"></td></tr> 
			                    <tr><td colspan="2" class="text" nowrap>Please type your User name and Password to access the product console.</td></tr>
			                    <tr><td colspan="2" height="5"></td></tr> 
			                    <tr><td nowrap class="text" width="40">User&nbsp;name:&nbsp;</td>
				                    <td nowrap valign="bottom"><input type="text" class="text" id="id_name" name="user_name" size="32" maxlength="32"></td></tr>
			                    <tr><td nowrap class="text">Password:&nbsp;</td>
				                    <td nowrap valign="bottom"><input type="password" class="text" id="id_pwd" name="password" size="32" maxlength="32">
				                        <input type="submit" id="login_btn" class="text" value="Log On" /></td></tr>
			                    <tr><td colspan="2" height="20">
			                        </td></tr>
			                    </table></td></tr> 
			    <tr><td width="20" class="vAlignTop"><img src="images/login_bottom_left.gif" /></td>
			                  <td width="485" style="background-image:url('images/login_bottom_back.gif'); background-repeat:repeat-x;"></td>
			                  <td width="20" class="vAlignTop"><img src="images/login_bottom_right.gif" /></td></tr> 
			     </table></td></tr>
			     <tr><td height="30" class="copyright" align="center">&copy; Copyright 2004-2019 <b>Trend Micro Incorporated</b>. All rights reserved.</td></tr>
			    </table>
			</td></tr></table></td></tr>
	</table></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" id="subordinate" style="display:none">
<tr><td colspan="3" align="center">
	<!--||AP Login||-->
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr><td align="center">
			<table border="0" cellpadding="0" cellspacing="0" align="center" width="525">
			    <tr><td height="40"></td></tr>
			    <tr><td><img src="images/ap_logo.gif"></td></tr>
			    <tr><td height="5"></td></tr>
			    <tr><td><table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
			            <tr><td width="20"><img src="images/login_titlebar_left.gif" /></td>
			                  <td width="485" class="login-table-title" background="images/login_titlebar_back.gif"></td>
			                  <td width="20"><img src="images/login_titlebar_right.gif" /></td></tr>
			            <tr><td colspan="3" class="login-table-content"><table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
			                    <tr><td height="10"></td></tr>
			                    <tr><td class="content-title" nowrap>Console session expired.</td></tr>
			                    <tr><td height="10"></td></tr>
			                    <tr><td><input type="button" class="text" value="Close" onclick="jsCloseWin();" /></td></tr>
			                    <tr><td height="20"></td></tr>
			            </table></td></tr> 
			            <tr><td width="20" class="vAlignTop"><img src="images/login_bottom_left.gif" /></td>
			                          <td width="485" style="background-image:url('images/login_bottom_back.gif'); background-repeat:repeat-x;"></td>
			                          <td width="20" class="vAlignTop"><img src="images/login_bottom_right.gif" /></td></tr>  
			            </table></td></tr>
	<tr><td height="30" class="copyright" align="center">&copy; Copyright 2004-2019 <b>Trend Micro Incorporated</b>. All rights reserved.</td></tr>
	</table>
			</td></tr></table></td></tr>
</table>
</form>
</body>
</html>
