<%

Function RndCode()	'//////// 生成四位的随机数
	Dim num
	Randomize
	num = int((9999-1000+1)*Rnd+1000) 
	RndCode = num
End Function

session("lhSecurityCode") = RndCode()

%>
<html>
<script language="javascript">
function checkform(thisform)
{
 
   if(thisform.user.value==""){
        alert("用户名不能为空！")
        thisform.user.focus()
          return(false)
      }
	 if(thisform.password.value==""){
        alert("密码不能为空！")
        thisform.password.focus()
          return(false)
      }
 
   if(thisform.SecurityCode.value==""){
        alert("请输入验证码！")
        thisform.SecurityCode.focus()
        return(false)
      }
   
  return true;
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网站后台管理系统</title>
<style type="text/css">
<!--
body {
	font-size: 12px;
	text-decoration: none;
}
td {
	font-size: 14px;
}
-->
</style>
</head>

<body bgcolor="#799AE1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form method="POST" name="form1" action="checklogin.asp" onSubmit="return checkform(this);">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="413" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEEAD6">
    <tr>
      <td height="29" colspan="3" background="images/topbg.gif">
	  <table width="95%" align="right" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td align="left" valign="middle"><font color="#FFFFFF"><B>后台管理入口</B></font></td>
            <td width="8%" align="center"><img src="images/help.gif" alt="帮助文档" width="21" height="21" border="0" align="middle"></td>
          </tr>
      </table>
	  </td>
    </tr>
    <tr>
      <td width="3" background="images/link.gif"></td>
      <td>
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="75" background="images/topbg.gif">
			<table width="100%" height="75" border="0" cellpadding="0" cellspacing="0">
          <tr>
		    <td width="30%" align="left" valign="bottom"><img src="images/xpbg.gif" width="411" height="74"></td>
		  </tr>
	  </table>
			</td>
          </tr>
          <tr>
            <td>
			<table width="95%" border="0" align="center">
	      <tr>
		    <td>
	  <fieldset>
                <legend accesskey="F" align="left">登录窗口</legend>
                <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr> 
				  <td width="10%">&nbsp;</td>
                        <td width="20%">用户名：</td>
                  <td><input name="user" type="text" id="user" size="19" style="font-size: 12px">
				  </td>
                </tr>
                <tr> 
				<td width="10%">&nbsp;</td>
                        <td width="20%">密　码：</td>
                  <td><input name="password" type="password" id="password" size="20" style="font-size: 12px">
                  </td>
                </tr>
			    <tr>
				  <td width="10%">&nbsp;</td>
                        <td>附加码：</td>
                  <td><input name="SecurityCode" type="text" id="SecurityCode" style="font-size: 12px" size="10"> 
                  &nbsp;<img src="security_code.asp" alt="验证码" /></td>
                </tr>
                <tr> 
                  <td colspan="3" align="center"><input type="submit" name="submit" value=" 登 录 " class="tbutton">
                     &nbsp;
                     <input type="reset" name="Submit" value=" 重 置 "></td>
                </tr>
              </table>
	  </fieldset> 
	  &nbsp;</td></tr>
	  </table></td>
          </tr>
        </table></td>
      <td width="3" background="images/link.gif"></td>
    </tr>
	<tr><td height="3" background="images/linkbom.gif" colspan="3"></td></tr>
</table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>
</body>
</html>
