<!--#include file="../Include/Conno.asp" -->
<!--#include file="../Include/char.asp" -->
<!--#include file="../Include/const.asp" -->
<%
If Request.ServerVariables("REQUEST_METHOD")="POST" then
  'If UserName Repeat
  m_UserName = checkStr(Trim(Request.Form("hidUserName")))
  m_Question = checkStr(Trim(Request.Form("hidQuestion")))
  m_Answer = checkStr(Trim(Request.Form("txtAnswer")))
  m_Sql = "SELECT * FROM T_Member WHERE F_UserName='"&m_UserName&"' and F_Answer='"&m_Answer&"'"
  Set rs = conn.Execute(m_Sql)
  if rs.Eof then
    Response.Write "<script>alert('对不起，答案错误，所以无法进行下一步操作！');history.back();</Script>"
    Response.End()
  end if
End if
%>
<html>
<head>
<title>会员俱乐部取回密码（第三步：修改密码）</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/member.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../Include/JChar.js"></script>
<script language="JavaScript">
  function CheckValidForm()
  {

	if (!IsValidString(document.thisForm.txtPassword.value))
	{
		msg="对不起，密码必须为4个以上的数字或字母！\n并且不能使用汉字当作密码！";
		alert(msg);
	 	document.thisForm.txtPassword.focus();
	return false;
	}

	if (document.thisForm.txtPassword.value!=document.thisForm.txtConfirmPassword.value)
	{
		msg="对不起，密码与确认密码不一致！";
		alert(msg);
		document.thisForm.txtPassword.focus();
	return false;
	}

  }
</script>
</head>
<body topmargin="0" leftmargin="0">
<!--#include file="../include/top.asp" -->
<!--#include file="../include/member_top.asp" --><!--#include file="club_top.asp" -->
<!--#include file="Top.asp" -->
<table  width="768" height="147" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="222" valign="top"> 
      <FORM method=post name=thisForm action="LostPassStep4.asp"  onSubmit="return CheckValidForm()">
        <br>
        <TABLE width=98% border=0 align="center" cellPadding=6 cellSpacing=1 borderColor=#111111 
      style="BORDER-COLLAPSE: collapse">
          <TBODY>
            <TR bgcolor="#FF9900"> 
              <TD colSpan=2 align=center><strong><font color="#FFFFFF">取回密码（第三步：修改密码）</font></strong></TD>
            </TR>
            <TR bgcolor="f2f2f2"> 
              <TD width="14%" height=4 align=right>请输入问题： </TD>
              <TD width="86%"><%= m_Question %>&nbsp; <input name="hidUserName" type="hidden" value="<%=m_UserName%>"></TD>
            </TR>
            <TR bgcolor="f2f2f2">
              <TD width="14%" height=5 align=right>答案：</TD>
              <TD><%= m_Answer %></TD>
            </TR>
            <TR bgcolor="f2f2f2">
              <TD width="14%" height=10 align=right>新密码：</TD>
              <TD><input type="password" name="txtPassword"></TD>
            </TR>
            <TR bgcolor="f2f2f2"> 
              <TD width="14%" height=22 align=right>确认新密码：</TD>
              <TD><input type="password" name="txtConfirmPassword"></TD>
            </TR>
            <TR align="left" bgcolor="f2f2f2"> 
              <TD height="38" colspan="2">说明： 密码答案正确，您现在可以修改你的密码。 </TD>
            </TR>
            <TR> 
              <TD height=56 colSpan=2 align="center" valign="bottom"> <input name=Step2  style="FONT-FAMILY: 宋体; FONT-SIZE: 12px; HEIGHT: 30px" type=submit value="  修改密码  "> 
              </TD>
            </TR>
          </TBODY>
        </TABLE>
      </form>
	  </td>
  </tr>
</table>
</table>
<!--#include file="../include/bottom.asp" -->
</body>
</html>
