<%temp_customer_manage_password_getback_changepassword_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_customer_manage_password_getback_check_handle -->
<%
if session("FB_EM_1_SQL_customer_password_getback")="" then
	site.Error.info = "请先填写答案！"
	site.Error.location = "back"
	site.Error.err()
End If
%>
<form name=passwordinfo method=post action=do.asp?tr=customer|manage|password|getback|changepassword|edit >
<TABLE cellSpacing=0 cellPadding=0 width=95%  border=0 <%=site.object(site.object_p).style%> style="border: 1px solid #C0C0C0" >
                <tr>
                  <td align="center">
                        <div align="center">
                        <table width="100%" border="0" cellpadding="10" cellspacing="1" >
                          <tr>
                            <td height=15 colspan=2 bgcolor="#f1f1f1"><font color=red>·取回密码第三步 &gt;&gt; 更改您的密码</font></td>
                          </tr>
                          <tr >
                            <td width="40%" align=right>新密码：</td>
                            <td width="58%" ><input type=password name="password" id="password" size=15 > <font color=red>**</font></td>
                          </tr>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
                          <tr >
                            <td width="40%" align=right>确认新密码</td>
                            <td width="58%" ><input type=password name="password_verify" id="password_verify" size=15 > <font color=red>**</font></td>
                          </tr>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
                          <tr >
                            <td width="98%" align="center" colspan="2"><input name=customer_reg_name value='<%=session("FB_EM_1_SQL_customer_password_getback")%>' type=hidden><input onClick="checksubmit();" type=button value=" 更改密码！ ">
                                <input type=reset name="Clear" value=" 重新填写 ">
                            </td>
                          </tr>
                        </table>
                    	</div>
                    </td>
                </tr>
</TABLE>
</form>
<script language=javascript>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}

function checkinfo()
{

  if(checkspace(document.passwordinfo.password.value)) {
	document.passwordinfo.password.focus();
    alert("对不起，请填写新密码！");
	return false;
  }

 if(!checkspace(document.passwordinfo.password.value)){
	 if(document.passwordinfo.password.value!=document.passwordinfo.password_verify.value) {
		document.passwordinfo.password_verify.focus();
		alert("对不起，您输入的新密码和确认新密码不符！");
		return false;
	  }
  }
  
return true;
}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checksubmit(){
if(checkinfo())
passwordinfo.submit();
}

</script>
