<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$page_title}</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
<style>
th, td{padding:3px;}
</style>
{* 包含脚本文件 *}
{insert_scripts files='common.js,myship.js'}
</head>
<body>
  <div id="wrap">
    <!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
		<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
    <div class="module goods_list">
      <div class="caption">
        <span>{$lang.shipping_method}</span>
      </div>
      <p class="top"><img src="images/bg1.gif" /></p>
      <div class="content">
        <!-- 开始收货人信息填写界面 -->
        {insert_scripts files='region.js,utils.js'}
				<script type="text/javascript">
        region.isAdmin = false;
        {foreach from=$lang.flow_js item=item key=key}
        var {$key} = "{$item}";
        {/foreach}

        {literal}
        onload = function() {
          if (!document.all)
          {
            document.forms['theForm'].reset();
          }
        }

        /* $Id : myship.js 4865 2007-01-31 14:04:10Z Hackfan $ */

				/* *
				 * 检查收货地址信息表单中填写的内容
				 */
				function checkForm(frm)
				{
					var msg = new Array();
					var err = false;

					if (frm.elements['country'].value == 0)
					{
						msg.push(country_not_null);
						err = true;
					}

					if (frm.elements['province'].value == 0 && frm.elements['province'].length > 1)
					{
						err = true;
						msg.push(province_not_null);
					}

					if (frm.elements['city'].value == 0 && frm.elements['city'].length > 1)
					{
						err = true;
						msg.push(city_not_null);
					}

					if (frm.elements['district'].length > 1)
					{
						if (frm.elements['district'].value == 0)
						{
							err = true;
							msg.push(district_not_null);
						}
					}

					if (err)
					{
						message = msg.join("\n");
						alert(message);
					}
					return ! err;
				}

								{/literal}
							</script>
        <form action="myship.php" method="post" name="theForm" id="theForm" onsubmit="return checkForm(this)">
          <!-- #BeginLibraryItem "/Library/myship.lbi" --><!-- #EndLibraryItem -->
        </form>
      </div>
      <p class="bottom"><img src="images/bg2.gif" /></p>
    </div>
    <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
		<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
  </div>
</body>
</html>