<%@ page language="C#" autoeventwireup="true" inherits="passport_addressedit, s1.chapk.com" %>

<%@ Register Src="../control/passport_left.ascx" TagName="passport_left" TagPrefix="uc3" %>
<%@ Register Src="../control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../control/footer.ascx" TagName="footer" TagPrefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>收货地址</title>
    <link rel="stylesheet" type="text/css" href="../css/public.css" />
    <link rel="stylesheet" type="text/css" href="../css/reg.css" />
    <script src="../js/jquery-1.2.6.pack.js" type="text/javascript"></script>
    <script src="../js/index.lib.js" type="text/javascript"></script>
    <script src="../js/nav.js" type="text/javascript"></script>     
    <script language="javascript" src="../js/three.js"></script>
</head>
<body onload="addressInit('cmbProvince', 'cmbCity', 'cmbArea', '<%=cmbProvince %>', '<%=cmbCity %>', '<%=cmbArea %>');">
<uc1:header ID="Header1" runat="server" />
<div class="zuipin">
    <div class="column">
  <div class="user_left">
     <uc3:passport_left ID="Passport_left1" runat="server" />
  </div>
  <div class="user_right">
      <div class="user_mod">
          <div class="zuipin_mod_t">
              <div class="zuipin_mod_t_l">
                  编辑收货地址</div>
              <div class="zuipin_mod_t_r">
              </div>
              <div class="clear">
              </div>
          </div>
          <div class="zuipin_mod_c">
    <form id="form1" runat="server">
<script type="text/javascript">
function check_form()
{
    var patternMobile = /^13\d{9}$|^15\d{9}$|^14\d{9}$|^18\d{9}$/;
    var patternPostcode = /^\d{6}$/;
	if (document.all.ONAME.value=="")
	{
		alert ("请填写姓名！");
		document.all.ONAME.focus();
		return false;
	}
	
	if (document.all.OPHONE.value == "" && document.all.OTEL.value == "")
	{
		alert ("电话和手机必须选填其一！");
		document.all.OPHONE.focus();
		return false;
	}
	
    if (document.all.OPHONE.value != "")
	{
		if (!patternMobile.test(document.all.OPHONE.value))
		{
			alert ("请输入正确的手机号码！");
			document.all.OPHONE.focus();
			return false;
		}
	}
	
	if (document.all.OADDRESS.value=="")
	{
		alert ("请填写通信地址！");
		document.all.OADDRESS.focus();
		return false;
	}
	
    if (document.all.OCODE.value=="")
	{
		alert ("请填写邮编！");
		document.all.OCODE.focus();
		return false;
	}
	
	if (!patternPostcode.test(document.all.OCODE.value))
	{
		alert ("您的邮政编码不符合规则！");
		document.all.OCODE.focus();
		return false;
	}
}
</script>    
<table width="756" cellpadding="0" cellspacing="20">
    <tr>
        <td>姓名：</td>
        <td><asp:TextBox ID="ONAME" runat="server" CssClass="text"></asp:TextBox> <span class="shut3">请填写您的有效证件上的真实姓名，以免延误您按时收到货物</span></td>
    </tr>
    <tr>
        <td>手机：</td>
        <td><asp:TextBox ID="OPHONE" runat="server" CssClass="text"></asp:TextBox> 
        <span class="shut3">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="OPHONE" ErrorMessage="不能为空"></asp:RequiredFieldValidator></span></td>
    </tr>
    <tr>
        <td>电话：</td>
        <td><asp:TextBox ID="OTEL" runat="server" CssClass="text"></asp:TextBox><span class="shut3">格式：区号 - 电话号码 - 分机号
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="OTEL" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
        </span></td>
    </tr>
    <tr>
        <td>地区：</td>
        <td>
<select id="cmbProvince" name="cmbProvince"></select>
<select id="cmbCity" name="cmbCity"></select>
<select id="cmbArea" name="cmbArea"></select>        
        </td>
    </tr>
    <tr>
        <td>地址：</td>
        <td><asp:TextBox ID="OADDRESS" runat="server" CssClass="text" Width="300px"></asp:TextBox><span class="shut3">格式：街道-小区-门牌号数-楼层-房间</span></td>
    </tr>
    <tr>
        <td>邮编：</td>
        <td><asp:TextBox ID="OCODE" runat="server" CssClass="text"></asp:TextBox></td>
    </tr>  
		<tr>
			<td width="15%" align="right"></td>
			<td>
			<asp:Button ID="btn_state1" runat="server" CssClass="button" OnClick="btn_state1_Click" Text="提交地址" /></td>
		</tr>                        
</table>
<asp:Label ID="lab_id" runat="server" Visible="false"></asp:Label>
    </form>
        
          
          </div>
      </div>
  </div>
  <div class="clear"></div>
</div>
</div>
<uc2:footer ID="Footer1" runat="server" />
</body>
</html>
