<%@language=vbscript codepage=936 %>
<%
dim ComeUrl
ComeUrl=trim(request("ComeUrl"))
if ComeUrl="" then
	ComeUrl=Request.ServerVariables("HTTP_REFERER")
end if
if ComeUrl="" then
	ComeUrl="index.asp"
end if
%>
<html>
<head>
<title>注册用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.CSS">
<script language=javascript>
function SetFocus()
{
if (document.Login.UserName.value=="")
	document.Login.UserName.focus();
else
	document.Login.UserName.select();
}
function CheckForm()
{
	if(document.Login.UserName.value=="")
	{
		alert("请输入用户名！");
		document.Login.UserName.focus();
		return false;
	}
	if(document.Login.Password.value == "")
	{
		alert("请输入密码！");
		document.Login.Password.focus();
		return false;
	}
}
</script>
</head>
<body onLoad="SetFocus();">
<p>&nbsp;</p>
<form name="Login" action="User_ChkLogin.asp" method="post" onSubmit="return CheckForm();" target=cc>
  <table width="280" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1" height="1"></td>
      <td height="1" bgcolor="#BCBCBC"></td>
      <td width="1" height="1"></td>
    </tr>
    <tr>
      <td bgcolor="#BCBCBC"></td>
      <td height="25" align="left" bgcolor="f2f2f2"><div align="center"><strong>---&nbsp;用户登录&nbsp;---</strong></div></td>
      <td bgcolor="#BCBCBC"></td>
    </tr>
  </table>
  <table width="280" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="bcbcbc">
    <tr bgcolor="ffffff">
      <td colspan="3" align="center"><table width="250" border="0" cellspacing="5" cellpadding="0" align="center">
          <tr>
            <td align="right">用户名称：</td>
            <td><input name="UserName"  type="text"  id="UserName" size="23" maxlength="20"></td>
          </tr>
          <tr>
            <td align="right">用户密码：</td>
            <td><input name="Password"  type="password" id="Password" size="25" maxlength="20"></td>
          </tr>
          <tr>
            <td height='25' align='right'>Cookie：</td>
            <td height='25'><select name=CookieDate>
                <option selected value=0>不保存</option>
                <option value=1>保存一天</option>
                <option value=2>保存一月</option>
                <option value=3>保存一年</option>
            </select></td>
          </tr>
       
        </table>
      </td>
    </tr>
  </table>
  <table width="280" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td bgcolor="#BCBCBC"></td>
      <td height="30" align="center" bgcolor="fafafa"><input name="ComeUrl" type="hidden" id="ComeUrl" value="<%=ComeUrl%>">
        <input   type="submit" name="Submit" value=" 确认 ">
&nbsp;
<input name="reset" type="reset"  id="reset" value=" 清除 "></td>
      <td bgcolor="#BCBCBC"></td>
    </tr>
    <tr>
      <td width="1" height="1"></td>
      <td height="1" bgcolor="#BCBCBC"></td>
      <td width="1" height="1"></td>
    </tr>
  </table>
</form>
</body>
</html>
