<%'禁止网页缓存
Response.Buffer = True 
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache"
'验证码生成
dim yz
randomize timer
yz=Int((8999)*Rnd +1009)
session("ok")=yz
%>
<html>
<head>
<title>管理员登陆</title>
<script language="JavaScript">
<!--
if (self != top) top.location.href = window.location.href
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function check()
{
  if(checkspace(document.admininfo.admin.value)) {
	document.admininfo.admin.focus();
    alert("管理员不能为空！");
	return false;
  }
  if(checkspace(document.admininfo.password.value)) {
	document.admininfo.password.focus();
    alert("密码不能为空！");
	return false;
  }
    if(checkspace(document.admininfo.yzm.value)) {
	document.admininfo.yzm.focus();
    alert("验证码不能为空！");
	return false;
  }
    if(document.admininfo.yzm.value != document.admininfo.yzm1.value) {
	document.admininfo.yzm.focus();
	document.admininfo.yzm.value = '';
	document.admininfo.yzm1.value = '';
    alert("验证码不同，请重新输入！");
	return false;
  }
	document.admininfo.submit();
  }
//-->
</script> 

</head>
<body bgcolor="f1f1f1">
<div align="center"></div>
<form name="admininfo" method="post" action="chkadmin.asp" >
  <div align="center"> 
    <div align="center"> 
      <p>&nbsp;</p>
      <table border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><img border="0" src="Image/D_Tu_YD1.gif"></td>
          <td rowspan="3"><img border="0" src="Image/D_Tu_YD2.gif"></td>
        </tr>
        <tr> 
          <td width="276" background="Image/D_Tu_YD4.gif" height="124"> <table border="0" width="100%" cellspacing="0" cellpadding="5">
              <tr> 
                <td width="26%" height="22" align="right">用户:</td>
                <td width="46%" height="22">
<input name="admin" class="wenbenkuang" type="text" id="admin" size="14"></td>
                <td width="28%">&nbsp; </td>
              </tr>
              <tr> 
                <td height="22" align="right">密码:</td>
                <td height="22">
<input name="password" class="wenbenkuang" type="password" id="password" size="14"></td>
                <td rowspan="3"><input border=0 onClick="return check();" name=Submit32 src="Image/D_Tu_DL.gif" type=image> 
                  <input type="hidden" name="action" value="login"></td>
              </tr>
              <tr> 
                <td height="22" align="right">验证:</td>
                <td height="22">
<input name="yzm" type="password" class="wenbenkuang" id="yz3" size="8" maxlength="5">
                  <span style="background-color: #FFFFFF"><font color="#ff3333">
                  <%=yz%><input name="yzm1" type="hidden" class="wenbenkuang" id="yzm1" value="<%=yz%>" size="8" maxlength="5">
                  </font></span></td>
              </tr>
              <tr> 
                <td align="center" colspan="2">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td><img border="0" src="Image/D_Tu_YD3.gif"></td>
        </tr>
      </table>
    </div>
  </div>
</form>
</body>
</html>