<%temp_customer_manage_info_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_customer_manage_info_show -->
<TABLE cellSpacing=0 cellPadding=0 width=95%  border=0 <%=site.object(site.object_p).style%> style="border: 1px solid #C0C0C0" >
                <tr>
                  <td align="center">
                      <form name=userinfo method=post action=do.asp?tr=customer|manage|info|edit >
                        <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="18%" align=right>用 户 名：</td>
                            <td width="79%" ><%=site.temp.customer.info.reg_name%></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="18%" align=right>用户性质：</td>
                            <td ><%=site.temp.customer.info.sort_name%></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="18%" align=right>密码问题：</td>
                            <td ><input  name="customer_password_verify_question" type="text" id="customer_password_verify_question" size="48" value="<%=site.temp.customer.info.reg_password_verify_question%>">
                                <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="18%" align=right>密码答案：</td>
                            <td ><input  name="customer_password_verify_answer" type="text" id="customer_password_verify_answer" size="40" value="">
                                <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="18%" align=right>电子邮箱：</td>
                            <td ><input  name="customer_email" type="text" id="customer_email" value="<%=site.temp.customer.info.reg_email%>">
                                <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="18%" align=right>真实姓名：</td>
                            <td >
							<input  name="customer_realname" type="text" id="customer_realname" size="20" value="<%=site.temp.customer.info.reg_realname%>">
                                <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="18%" align=right>姓　　别：</td>
                            <td ><input type=radio name="customer_sex" id=Select1 value=0 <%if site.temp.customer.info.reg_sex=0 then response.write "checked"%>>女
                                <input type=radio name="customer_sex" id=Select1 value=1 <%if site.temp.customer.info.reg_sex=1 then response.write "checked"%>>男</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="18%" align=right>年　　龄：</td>
                            <td ><input type=text maxlength="2" name="customer_age" size=5 onKeyPress="event.returnValue=IsDigit();" value="<%=site.temp.customer.info.reg_age%>">
                            </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="18%" align=right>邮　　编：</td>
                            <td ><input  name="customer_postcode" type="text" id="customer_postcode" maxlength="6" size="10" onKeyPress="event.returnValue=IsDigit();" value="<%=site.temp.customer.info.reg_postcode%>">
                                <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="18%" align=right>联系电话：</td>
                            <td ><input  name="customer_telnumber" maxlength="18" type="text" id="customer_telnumber" value="<%=site.temp.customer.info.reg_telnumber%>">
                                <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="18%" align=right>收货地址：</td>
                            <td >
							<input  name="customer_address" type="text" id="customer_address" size="48" maxlength="30" value="<%=site.temp.customer.info.reg_address%>">
                                <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>
						  <%
                          site.temp.customer.reg.reg_property_show site.temp.customer.info.sort_id,"1","customerp",site.temp.customer.info.reg_property
                          %>
                          <tr >
                            <td colspan="2" valign="middle" bgcolor="#f1f1f1"><font color="#FF3300">·选填项</font></td>
                          </tr>
                          <tr >
                            <td width="18%" align=right>您的身份证号：</td>
                            <td ><input  name="customer_classid" type="text" id="customer_classid" maxlength="18" onKeyPress="event.returnValue=IsDigit();" value="<%'=site.temp.customer.info.reg_%>">
                            </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="18%" align=right>QQ号：</td>
                            <td ><input  name="customer_qqnumber" type="text" id="customer_qqnumber" maxlength="12" onKeyPress="event.returnValue=IsDigit();" value="<%=site.temp.customer.info.reg_qqnumber%>">
                            </td>
                          </tr>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
						  <%
                          site.temp.customer.reg.reg_property_show site.temp.customer.info.sort_id,"0","customerp",site.temp.customer.info.reg_property
                          %>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
                          <tr >
                            <td width="18%" align="right"></td>
                            <td ><input type=hidden name=customer_property ><input onClick="reginfosubmit();" type=button value=" 提交信息 ">
                                <input type=reset name="Clear" value=" 重新填写 ">
                            </td>
                          </tr>
                        </table>
                    	</div>
                    </form></td>
                </tr>
</TABLE>
<script language=javascript>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}

function checkreginfo()
{

 if(document.userinfo.customer_email.value.length!=0)
  {
    if (document.userinfo.customer_email.value.charAt(0)=="." ||        
         document.userinfo.customer_email.value.charAt(0)=="@"||       
         document.userinfo.customer_email.value.indexOf('@', 0) == -1 || 
         document.userinfo.customer_email.value.indexOf('.', 0) == -1 || 
         document.userinfo.customer_email.value.lastIndexOf("@")==document.userinfo.customer_email.value.length-1 || 
         document.userinfo.customer_email.value.lastIndexOf(".")==document.userinfo.customer_email.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.userinfo.customer_email.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.userinfo.customer_email.focus();
   return false;
   }
//  if(checkspace(document.userinfo.quesion.value)) {
//	document.userinfo.quesion.focus();
//   alert("对不起，请填写密码提问！");
//   return false;
//  }
//  if(checkspace(document.userinfo.answer.value)) {
//	document.userinfo.answer.focus();
//    alert("对不起，请填写密码提问的答案！");
//	return false;
//  }
   if(checkspace(document.userinfo.customer_realname.value)) {
	document.userinfo.customer_realname.focus();
    alert("对不起，请填写真实姓名！");
	return false;
  }
  if(checkspace(document.userinfo.customer_address.value)) {
	document.userinfo.customer_address.focus();
    alert("对不起，请填写收货人详细收货地址！");
	return false;
  }
  if(checkspace(document.userinfo.customer_postcode.value)) {
	document.userinfo.customer_postcode.focus();
    alert("对不起，请填写邮编！");
	return false;
  }
  if(document.userinfo.customer_postcode.value.length!=6) {
	document.userinfo.customer_postcode.focus();
    alert("对不起，请正确填写邮编！");
	return false;
  } 
    if(checkspace(document.userinfo.customer_telnumber.value)) {
	document.userinfo.customer_telnumber.focus();
    alert("对不起，请留下您的联系电话！");
	return false;
  }
//      if(checkspace(document.userinfo.songhuofangshi.value)) {
//	document.userinfo.songhuofangshi.focus();
//    alert("对不起，您还没有选择送货方式！");
//	return false;
//  }
//      if(checkspace(document.userinfo.zhifufangshi.value)) {
//	document.userinfo.zhifufangshi.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(){
var customer_p=""
<%
for i_r=0 to site.temp.customer.reg.reg_property_show(site.temp.customer.info.sort_id,"3","dd","")
response.write "customer_p=customer_p+document.userinfo.customerp_"&i_r&".value+','"&vbcrlf
next
%>
document.userinfo.customer_property.value=customer_p;
if(checkreginfo(customer_p))
userinfo.submit();
//alert(customer_p);
}
</script>
