<% try { %>
<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);


  /* ************************************************************************************************************** */
  /* The formatting part of this template is duplicated in AuthForm.  If changes are made, change that file as well */
  /* ************************************************************************************************************** */


   c.stringTable("DevResources");
   c.stringTable("FwResources"); %>
<html>
   <head>
      <title><%= c.string("ProductName") %></title>
      <LINK href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>" rel="styleSheet" type="text/css">
      <style type= "text/css" media="screen">
         #Headgraphic  { position: absolute; z-index: 1; top: 0px; left: 0px; width: 650px; visibility: visible }
         #logo { text-align: right; position: absolute; z-index: 1; top: 30px; left: 0px; width: 100%; height: 22px; visibility: visible }
         #title   { position: absolute; z-index: 1; top: 25px; left: 12px; width: 208px; visibility: visible }
         #Apptitle1  { position: absolute; z-index: 4; top: 0px; left: 0px; visibility: visible }
         #Nimage  { position: absolute; top: 10px; left: 10px; width: 100px; height: 103px; visibility: visible }
         #BodyPane  { position: absolute; width: 470px; visibility: visible }
         #FailPane  { position: absolute; width: 470px; visibility: visible }
         .errorhead  { color: #c82727; font-style: normal; font-weight: 800; font-size: 14px; line-height: 18px; }
         .emframeformhead1 { color: white; font-weight: bold; font-size: 1.0em; line-height: 1.2em; background-color: #458ab9; text-align: left; text-indent: 0.5em}
         .emframerulebelow { padding-bottom: 10px; border-bottom: 2px solid #458ab9 }
         body { background: white url(<%= c.getModulesUrl() + "/fw/images/head_bg.gif" %>) repeat-x 0% 0% }
      </style>
      <script>
         function pageInit()
         {
             top.name="eMFrame";
	         if(document.AuthenticateForm != null)
    	     {
        	    document.AuthenticateForm.AuthenticatePassword.focus();
         	 }
         }
      </script>
   </head>

   <body bgcolor="white" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onLoad="pageInit()">
      <div id="Headgraphic" style="height:<% if (session.getAttribute("DeviceType").equals("default") && c.var("Browser.name").equals("NSN")) { %>62<% } else { %>72<% } %>px; z-index:2; background-color:white;">
         <IMG src="<%= c.getModulesUrl() + "/fw/images/edir_h1.gif" %>" width="650" height="59" border="0">
      </div>
            <div id="Apptitle1">
               <IMG src="<%= c.getModulesUrl() + "/fw/images/title_imanager.gif" %>" <% if (session.getAttribute("DeviceType").equals("default")) { %>alt="Novell iManage" title="Novell iManage"<% } %> border="0">
      </div>
      <div id="logo" style="z-index:2;">
         <table border="0" cellpadding="0" cellspacing="0" align="left">
            <tr>
               <td width="450" align="left"><IMG height="10" width="600" src="<%= c.getModulesUrl() + "/fw/images/1px_spacer.gif" %>" border="0"></td>
               <td align="right" width="100%"><% if ( c.def("eMFrame.Debug.enable")) { %><a href="webacc?taskId=dev.Empty&merge=fw.Body&view=Debug&User.context=<%= c.var("User.context") %>" target="Mainscreen"><% } else { %><a href="http://www.novell.com/products/consoles/imanager/" target="_blank"><% } %><IMG height="22" width="100" src="<%= c.getModulesUrl() + "/fw/images/novelllogo.gif" %>" <% if (session.getAttribute("DeviceType").equals("default")) { %>alt="Novell" title="Novell"<% } %> border="0"></a></td>
            </tr>
         </table>
      </div>
      <table height="100%" border=0 width="600" cellpadding=0 cellspacing=0>
      <tr>
         <td bgcolor="#dfddd5" width="125" valign="top">
         <br>
         <br>
         <br>
         <br>
         &nbsp;&nbsp;<IMG src="<%= c.getModulesUrl() + "/fw/images/nlogo_100.gif" %>" border="0">
      </td>
      <td width="10">
         &nbsp;
      </td>
      <td valign="top" width="465">
      <br>
      <br>
      <br>
      <br>
      <form name="AuthenticateForm" method=post action="<%= request.getContextPath() %>/servlet/frameservice" target="_top">
      <input type=hidden name="taskId" value="fw.AuthenticateDisconn">
      <input type=hidden name="merge" value="fw/Main">
      <input type=hidden name="error" value="fw/AuthForm">
      <input type=hidden name="forceMaster" value="<%= c.var("forceMaster") %>">
      <input type=hidden name='Login_Key' value='<%= c.var("Login_Key") %>'>

      <table border="0" cellpadding="2" cellspacing="1">
         <tr bgcolor="#458ab9">
            <td valign=middle>
               <div class="emframeformhead1"><%= c.string("AuthenticateForm.LoginDisconnTitle") %></div>
            </td>
         </tr>
         <% if ( c.def("Url.relogin") && c.var("Url.relogin").equals("true")) { %>
         <tr>
           <td><br><b><font size=+0><%= c.string("AuthenticateForm.Browser.TimeoutMsg") %></font></b><br><br></td>
         </tr>
         <% }
            String sErr = (String) request.getAttribute("Error");
            if (sErr != null && sErr.equals("OldLogin"))
            { %>
         <tr>
           <td><br><b><font size=+0><%= c.string("AuthenticateForm.Browser.OldLoginScreenMsg") %></font></b><br><br></td>
         </tr>
         <% }
            if (c.toLower(c.var("Request.scheme")).equals("https") == false && c.var("Security.Warn.nonSecure").equals("true")) { %>
             <tr><td>
                <br><b><font size=-1><%= c.string("AuthenticateForm.Warn.nonSecure") %></font><b><br>
             <td></tr>
         <% } %>

         <tr>
            <td height="50" nowrap valign="bottom" class="mediumtext">
               <%= c.string("AuthenticateForm.PasswordEditBoxHeader") %>
               <br>
               <input type="password" name="AuthenticatePassword" width="263" style="width: 263px" value="" size="40">
            </td>
         </tr>
         <tr>
            <td valign="bottom" height="34" class="emframerulebelow"><INPUT type=image name="<%= c.string("Button.Login.alt") %>" alt="<%= c.string("Button.Login.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Login.image") %>" border=0></td>
         </tr>
         <tr>
            <td class="smalltext"><p><%= c.string("Application.htmlCopyright") %></p></td>
         </tr>
      </table>
      </td>
   </tr>
</table>
</body>
</html>
<% } catch (Exception e) { e.printStackTrace(); } %>
