<%temp_customer_manage_password_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_customer_manage_password_show -->
<form name=userinfo method=post action=do.asp?tr=customer|manage|password|edit >
<TABLE cellSpacing=0 cellPadding=0 width=100%  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="5" cellspacing="1" >
                          <tr>
                            <td height=15 colspan=2 bgcolor="#f1f1f1"><font color="#FF3300">·密码管理</font></td>
                          </tr>
                          <tr >
                            <td width="30%" align=right>原密码：</td>
                            <td width="58%" align=left><input size=30 type=password name="customer_password_old" id="customer_password_old"></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="30%" align=right>新密码：</td>
                            <td width="58%" align=left><input size=30 type=password name="customer_password_new" id="customer_password_new"></td>
                          </tr>
                          <tr >
                            <td width="30%" align=right>确认新密码：</td>
                            <td width="58%" align=left><input size=30 type=password name="customer_password_new_verify" id="customer_password_new_verify"></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 onClick="reginfosubmit();" 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 checkreginfo()
{
   if(checkspace(document.userinfo.customer_password_old.value)) {
	document.userinfo.customer_password_old.focus();
    alert("对不起，请填写原密码！");
	return false;
  }
  
 if(!checkspace(document.userinfo.customer_password_new.value)){
	 if(document.userinfo.customer_password_new.value!=document.userinfo.customer_password_new_verify.value) {
		document.userinfo.customer_password_new.focus();
		alert("对不起，您输入的确认新密码和新密码不符！");
		return false;
	  }
  }

return true;
}

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

function reginfosubmit(){
if(checkreginfo())
userinfo.submit();
}

</script>
