<?php

$e= $_GET['e'];

?>
<style type="text/css"></style><head>
<link href="css/navigation.css" rel="stylesheet" type="text/css">
<link href="css/main.css" rel="stylesheet" type="text/css">

<script type="text/javascript">
function nospaces(t){
if(t.value.match(/\s/g)){
t.value=t.value.replace(/\s/g,'');
}
}
</script> 

<script language="javascript">
<!-- make each letter  in textbox lowercase
    function ToLower(ctrl)
    {  
    var t = ctrl.value;
    ctrl.value = t.toLowerCase();
    }
//-->
</script>



</head>

<body  onload="<?php if ($e==1) { ?> document.getElementById('warning_1').style.display = 'block'; <?php } else { ?> document.getElementById('warning_1').style.display = 'none'; <?php } 
                     if ($e==2) { ?> document.getElementById('warning_2').style.display = 'block'; <?php } else { ?> document.getElementById('warning_2').style.display = 'none'; <?php } ?>" >
<link href="css/main.css" rel="stylesheet" type="text/css" />
<br>
<br>
<br>
<br>
<table width="958" align="center" id="navigation_log_in_table"  >
  <tr>
    <td colspan="3" align="center" valign="middle">&nbsp;&nbsp;&nbsp;
      </td>
  </tr>
  <tr>
    <td height="173"  align="center">&nbsp;</td>
    <td  align="center">&nbsp;</td>
    <td  align="center">&nbsp;</td>
  </tr>
  <tr>
    <td width="537" height="485"  align="center" valign="top"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div>
      
      Application developed by Customized Software </div>
      </td>
    <td width="259"  align="center" valign="top">
    <div class="login_frame">
        <table width="264" cellpadding="10" id="navigation_table">
          <form method="POST" action="include/loginproc.php">
            <tr>
              <td colspan="3">Enter name and password to log in.</td>
            </tr>
            <tr>
              <td><label class="std">User name</label></td>
              <td>:</td>
              <td><input name="user_name_text" type="text" autofocus class="login" onKeyUp="nospaces(this); ToLower(this)" maxlength="30" ></td>
            </tr>
            <tr>
              <td><label class="std">Password</label></td>
              <td>:</td>
              <td><input name="password_text" type="password" class="login" onKeyUp="nospaces(this); ToLower(this)" maxlength="30" ></td>
            </tr>
            <tr>
              <td colspan="3" align="center"><p
></p>
                <p>
                  <input type="submit" class="header_button" value="Login">
                  <font size="2">
                    <input type="hidden" name="sublogin" value="1">
                  </font></p></td>
            </tr>
          </form>
        </table>
      </div>
      <div class="warning_frame" id="warning_1">
        <table width="215" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="40"><img src="images/icon-error.png" width="30" height="30"></td>
            <td width="175"><label class="label_std">You entered the wrong username and/or password</label></td>
          </tr>
        </table>
      </div>
      <div class="warning_frame" id="warning_2">
        <table width="215" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="40"><img src="images/icon-error.png" width="30" height="30"></td>
            <td width="175"><label class="label_std">Your log-in is correct, but there is no home page set for you. Contact the system administrator.</label></td>
          </tr>
        </table>
      </div></td>
    <td width="146"  align="center">&nbsp;</td>
  </tr>
</table>
</body>


</html>