<!--#include file="conn.asp" -->
<!--#include file="md5.asp"-->
<!--#include file="fuction.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="webtop.asp"-->
<%
username=nosql(request("username"))
passwd=md5(trim(request.form("passwd")))
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [shop_user] where username='"&username&"'"
rs.open sql,conn,1,3
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>
<%
else
rs("userpassword")=passwd
rs.update
end if
rs.close
set rs=nothing
%>
<style type="text/css">
<!--
.style1 {color: #3399CC}
-->
</style>
<table width="1000" border="0"  align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2"><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 Password </td>
        </tr>
    </table></td>
  </tr>
  <tr>
  <td width="205"><!--#include file="index_login.asp"--></td>
    <td width="795" valign="top"><div align="center">
  <TABLE width=98% border=0 cellPadding=0 cellSpacing=1 bgcolor="#CCCCCC">
    <TBODY>
      <TR> 
        <TD height=25 colSpan=2 bgcolor="#CCCCCC"><div align="left"><FONT 
                  color=#ff6600><B>&nbsp;</B></FONT><span style="font-weight: bold">Success!</span></div></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 width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
                  <tr> 
                    <td height="10"></td>
                  </tr>
                </table>
                <table cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse" border="0">
                  <tr> 
                    <td valign="top" width="100%"> <div align="center"> 
                        <center>
                          <table border="0" cellpadding="0" width="99%" cellspacing="0" height="49">
                            <tr> 
                              <td width="7%" height="1"><div align="left"><img src="images/ok.gif" width="52" height="50"></div></td>
                              <td width="93%"> <p align="left">Success to reset your password! <a href="index.asp" class="STYLE2">Back to Homepage</a></td>
                            </tr>
                          </table>
                        </center>
                      </div></td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
                  <tr> 
                    <td height="10"></td>
                  </tr>
                </table></td>
            </tr>
          </table></TD>
      </TR>
    </TBODY>
  </TABLE>
</div></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>