<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)Login.jsp    1.18    03/08/07     SMI"
   * 
   */
 --%>
<%@ include file="layout/toptags.jsp"%>  
<!-- locale stuff -->
<html:html locale="true">
<!-- end locale -->

<script language="JavaScript1.2" src="jslib/common.js">
</script>
<head>
<%@include file="/layout/page_head_section.jsp"%>
	<title>
		<bean:message  key="login.title"/>
	</title>
</head>
<%@ include file="/layout/bodytag.jsp"%>
<%@include file="/layout/masthead_nof.jsp"%>

<table width="100%" cellspacing="0" cellpading="0" border="0">
<tr>
<td colspan="2"><img alt border="0" height="20" src="images/dot.gif" width="1"/></td>
</tr>
<tr>
<td ><img alt border="0" height="1" src="images/dot.gif" width="100"/></TD>
<td width="100%" align="center">


<html:form action="/login" focus="username"  >
<input type="hidden" name="action" value="login">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td nowrap colspan="4"><font color="red"><html:errors/></font></td>
  </tr>
  <% 
     String errorMsg = (String)request.getParameter("error_message");
     if (errorMsg != null) {
  %>
  <tr>
    <td nowrap colspan="4">
       <font color="red">
          <bean:message  key="<%= errorMsg %>"/>
       </font>
    </td>
  </tr>
  <% } %> 
  <tr>
    <td nowrap><bean:message  key="login.prompt.username"/>:</td>
    <td><img alt border="0" height="1" src="images/dot.gif" width="10"></td>
    <td align="left" ><html:text property="username" size="25" onkeypress="checkEnter(event, 'login')"/></td>
    <td width="100%">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4"><img alt border="0" height="10" src="images/dot.gif" width="1"></td>
  </tr>
  <tr>
    <td nowrap><bean:message  key="login.prompt.password"/>:</td>
    <td><img alt border="0" height="1" src="images/dot.gif" width="10"></td>
    <td align="left">
    <script>
      if(is_nav4) {
        document.write("<input type='password' name='password' size='25' onChange='submitForm()'/>")
      } else {
        document.write("<input type=\"password\" name=\"password\" size=\"25\" onKeyPress=\"checkEnter(event, 'login')\"/>")
      }
    </script>
    </td>
    <td width="100%">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4"><img alt border="0" height="10" src="images/dot.gif" width="1"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right" >
                <component:button text="button.login" href="javascript:submitForm('login');"  title="button.login" isEnabled="true" />
    </td>
    <td width="100%">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4"><img alt border="0" height="20" src="images/dot.gif" width="1"></td>
  <tr>
    <td colspan="4" align="left"><bean:message  key="login.prompt.register"/></td>
  </tr>
  <tr>
    <td colspan="4"><img alt border="0" height="20" src="images/dot.gif" width="1"></td>
  </tr>
  <tr>
    <td colspan="4" align="left">
      <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
          <td><img alt border="0" height="1" src="images/dot.gif" width="1"></td>
          <td class="copyright-separator"><img alt border="0" height="20" src="images/dot.gif" width="1"></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td class="copyright-separator"><img alt border="0" height="1" src="images/dot.gif" width="1"></td>
          <td><img alt border="0" height="1" src="images/dot.gif" width="5"></td>
          <td class="copyright-text"><bean:message  key="login.copyright"/></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</html:form>

</td>
</tr>
</table>


</body>
</html:html>

