<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-family: "宋体";
font-size: 30px;
}
.STYLE2 {
font-family: "宋体";
font-size: 14px;

}
.kuang {
height: 14px;
width: 100px;
border: 1pt solid #7f9db9;
font-family: "宋体";
font-size: 9pt;
font-style: normal;
font-weight: normal;
font-variant: normal;
border:1 solid #000000;
}
.STYLE3 {
font-family: "宋体";
font-size: 12px;
}
-->
</style>
</head><body topmargin="10" bottommargin="10">
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3399ff">  <tr>
    <td width="40%" height="150" align="right" valign="middle"><span class="STYLE2">管理员登录:</span></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1" method="post" action="logina.jsp">
      <tr>
        <td width="40%" height="50" align="right"><span class="STYLE3">用户名:</span></td>
        <td><input name="name" type="text" class="kuang"></td>
      </tr>
      <tr>
        <td height="50" align="right" class="STYLE3">密 码:</td>
        <td><input name="pass" type="text" class="kuang"></td>
      </tr>
      <tr>
        <td height="50" colspan="2" align="center">
<input name="Submit" type="submit" class="STYLE3" value="提交" 
onClick="return isvalid()">&nbsp;<input name="Submit2" type="reset" class="STYLE3" value="清空"></td>
        </tr>
</form>
    </table></td>
  </tr>
  <tr>
    <td height="20" colspan="2" align="right" valign="middle" class="STYLE2">&nbsp;</td>
  </tr>
</table>
<script language="JavaScript" type="text/JavaScript">
<!--
function isvalid()
{
   if(form1.name.value=="")
    {
    alert("用户名不可为空!");
    document.form1.name.focus();
    return false;
    }
   if(form1.pass.value=="")
    {
    alert("密码不可为空!");
    document.form1.pass.focus();
    return false;
    }
if(form1.pass.value.match(/^\d*$/)==null)
{
alert("密码不是数字");
document.form1.pass.focus();
return false;
}
   return true;
}
</script>
</body>
</html>