<!--#include file=conn.asp -->
<!--#include file=md5.asp -->
<!--#include file="fuction.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="webtop.asp"-->
<%
username=nosql(request("username"))
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [shop_user] where username='"&username&"'"
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("This ID is not yet taken, please go back to home page to register.")
location.href="javascript:history.back()"
</script>
<%
End If
If rs("answer")<>md5(trim(request("answer"))) Then
Response.redirect"getpwderr.asp?content=Answer"
End If
%>
<script LANGUAGE="javascript">
<!--
function FrmAddLink_onsubmit() {
 if (document.FrmAddLink.passwd.value=="")
	{
	  alert("Fill the password please！")
	  document.FrmAddLink.passwd.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd.value.length < 6)
	{
	  alert("Too short of the password！")
	  document.FrmAddLink.passwd.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd.value.length > 16)
	{
	  alert("Too Long of the password！")
	  document.FrmAddLink.passwd.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd2.value=="")
	{
	  alert("Authcode error!")
	  document.FrmAddLink.passwd2.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.passwd.value)
	{
	  alert("Entered passwords differ!")
	  document.FrmAddLink.passwd2.focus()
	  return false
	 }
}

//-->
</script>
<style type="text/css">
<!--
.style1 {
	color: #3399CC;
	font-weight: bold;
}
-->
</style>
<table width="1000" border="0"  align="center"  cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3"><table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td width="50%" height="30"><img src="<%=weburl%>images/arrow01.gif" width="11" height="11" /> Your present position: <a href="<%=weburl%>"><%=webname%></a> -&gt; Reset Your Password </td>
        </tr>
    </table></td>
  </tr>
  <tr>
     <td width="205"><!--#include file="index_login.asp"--></td>
    <td width="795" valign="top"><div align="center">
 <form method="POST" name="FrmAddLink" language="javascript" onSubmit="return FrmAddLink_onsubmit()" action="getpwd4.asp?username=<%=username%>&depid=<%=depid%>"> 
  <TABLE width=98% border=0 align="center" cellPadding=0 cellSpacing=1 bgcolor="#CCCCCC">
    <TBODY>
      <TR> 
        <TD height=25 colSpan=2 bgcolor="#CCCCCC"><FONT 
                  color=#ff6600><B>&nbsp;</B></FONT><B>Right</B></TD>
      </TR>
      <TR> 
        <TD align=left vAlign=top bgcolor="#FFFFFF"> 
          <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr> 
              <td align="center"> <table border="0" cellpadding="0" width="100%" cellspacing="0" height="62" align="center">
                  <tr> 
                    <td width="100%" height="30"> <p>Step3：Reset Your Password。 </td>
                  </tr>
                  <tr>
                    <td height="30"> New Password： 
                      <input type="password" name="passwd" size="20" maxlenght=16 class="wenbenkuang"  > </td>
                  </tr>
                  <tr> 
                    <td width="100%" height="30">
                      Again： 
                        <input type="password" name="passwd2" size="20" maxlenght=16 class="wenbenkuang"  >   </td>
                  </tr>
                  <tr>
                    <td height="30"><input name="Submit" type="submit" class="go-wenbenkuang" value="Submit"></td>
                  </tr>
                </table>
                </td>
            </tr>
          </table></TD>
      </TR>
    </TBODY>
  </TABLE>
</form>
</div></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html><%   
conn.close   
set conn=nothing   
%>