<!-- BEGIN FORM -->
<script type="text/javascript" src="$config[dir_js]checkForm.js"></script>
<script type="text/javascript" src="$config[dir_js]orders.js"></script>
<script type="text/javascript">
<!--
  if( !aCheckFormDelivery ){
    var aCheckFormDelivery =  Array(
      Array( 'sFirstName' )
      ,Array( 'sLastName' )
      ,Array( 'sZipCode' )
      ,Array( 'sCity' )   
      ,Array( 'sStreet' )  
      ,Array( 'sTelephone' )
      ,Array( 'sEmail', 'email' )
      ,Array( 'iCourier', 'simple', '$lang[Choose_courier]' )
    );
  }
//-->
</script>
<form action="?p=$p" method="post" onsubmit="return checkForm( this, aCheckFormDelivery );" id="order">
  <fieldset>
    <input type="hidden" name="sOption" value="send" />
    <h2>$lang[Order_details]</h2>
    <h4>$lang[Your_personal_information]</h4>
    <table cellspacing="0" id="orderDetails">
      <tr>
        <th>
          $lang[First_name]:
        </th>
        <td>
          <input type="text" name="sFirstName" value="$aData[sFirstName]" class="input" maxlength="20" onblur="saveUserData( this.name, this.value )" />
        </td>
        <td id="orderComment" rowspan="8">
          <div id="oCommDesc">$lang[Comment_order]:</div>
          <div id="oCommTextarea"><textarea name="sComment" rows="9" cols="" tabindex="32767"></textarea></div>
        </td>
      </tr>
      <tr>
        <th>
          $lang[Last_name]:
        </th>
        <td>
          <input type="text" name="sLastName" value="$aData[sLastName]" class="input" maxlength="40" onblur="saveUserData( this.name, this.value )" />
        </td>
      </tr>
      <tr>
        <th>
          $lang[Company]:
        </th>
        <td>
          <input type="text" name="sCompanyName" value="$aData[sCompanyName]" class="input" maxlength="100" onblur="saveUserData( this.name, this.value )" />
        </td>
      </tr>
      <tr>
        <th>
          $lang[Zip_code]:
        </th>
        <td>
          <input type="text" name="sZipCode" value="$aData[sZipCode]" class="input" maxlength="20" onblur="saveUserData( this.name, this.value )" onKeyUp="AjaxZip2.zip2addr(this,'sCity','sStreet');" />
        </td>
      </tr>
      <tr>
        <th>
          $lang[City]:
        </th>
        <td>
          <select type="text" name="sCity" value="$aData[sCity]" class="input" maxlength="40" onblur="saveUserData( this.name, this.value )">
<!-- for japanese -->
<option value="">ÅìµþÅÔ</option>
<option value="ËÌ³¤Æ»">ËÌ³¤Æ»</option><option value="ÀÄ¿¹¸©">ÀÄ¿¹¸©</option>
<option value="´ä¼ê¸©">´ä¼ê¸©</option><option value="µÜ¾ë¸©">µÜ¾ë¸©</option>
<option value="½©ÅÄ¸©">½©ÅÄ¸©</option><option value="»³·Á¸©">»³·Á¸©</option>
<option value="Ê¡Åç¸©">Ê¡Åç¸©</option><option value="°ñ¾ë¸©">°ñ¾ë¸©</option>
<option value="ÆÊÌÚ¸©">ÆÊÌÚ¸©</option><option value="·²ÇÏ¸©">·²ÇÏ¸©</option>
<option value="ºë¶Ì¸©">ºë¶Ì¸©</option><option value="ÀéÍÕ¸©">ÀéÍÕ¸©</option>
<option value="ÅìµþÅÔ">ÅìµþÅÔ</option><option value="¿ÀÆàÀî¸©">¿ÀÆàÀî¸©</option>
<option value="¿·³ã¸©">¿·³ã¸©</option><option value="ÉÙ»³¸©">ÉÙ»³¸©</option>
<option value="ÀÐÀî¸©">ÀÐÀî¸©</option><option value="Ê¡°æ¸©">Ê¡°æ¸©</option>
<option value="»³Íü¸©">»³Íü¸©</option><option value="Ä¹Ìî¸©">Ä¹Ìî¸©</option>
<option value="´ôÉì¸©">´ôÉì¸©</option><option value="ÀÅ²¬¸©">ÀÅ²¬¸©</option>
<option value="°¦ÃÎ¸©">°¦ÃÎ¸©</option><option value="»°½Å¸©">»°½Å¸©</option>
<option value="¼¢²ì¸©">¼¢²ì¸©</option><option value="µþÅÔÉÜ">µþÅÔÉÜ</option>
<option value="ÂçºåÉÜ">ÂçºåÉÜ</option><option value="Ê¼¸Ë¸©">Ê¼¸Ë¸©</option>
<option value="ÆàÎÉ¸©">ÆàÎÉ¸©</option><option value="ÏÂ²Î»³¸©">ÏÂ²Î»³¸©</option>
<option value="Ä»¼è¸©">Ä»¼è¸©</option><option value="Åçº¬¸©">Åçº¬¸©</option>
<option value="²¬»³¸©">²¬»³¸©</option><option value="¹­Åç¸©">¹­Åç¸©</option>
<option value="»³¸ý¸©">»³¸ý¸©</option><option value="ÆÁÅç¸©">ÆÁÅç¸©</option>
<option value="¹áÀî¸©">¹áÀî¸©</option><option value="°¦É²¸©">°¦É²¸©</option>
<option value="¹âÃÎ¸©">¹âÃÎ¸©</option><option value="Ê¡²¬¸©">Ê¡²¬¸©</option>
<option value="º´²ì¸©">º´²ì¸©</option><option value="Ä¹ºê¸©">Ä¹ºê¸©</option>
<option value="·§ËÜ¸©">·§ËÜ¸©</option><option value="ÂçÊ¬¸©">ÂçÊ¬¸©</option>
<option value="µÜºê¸©">µÜºê¸©</option><option value="¼¯»ùÅç¸©">¼¯»ùÅç¸©</option>
<option value="²­Æì¸©">²­Æì¸©</option>
          </select>
        </td>
      </tr>
     <tr>
        <th>
          $lang[Street]:
        </th>
        <td>
          <input type="text" name="sStreet" value="$aData[sStreet]" class="input" maxlength="40" onblur="saveUserData( this.name, this.value )" />
        </td>
      </tr>
      <tr>
        <th>
          $lang[Telephone]:
        </th>
        <td>
          <input type="text" name="sTelephone" value="$aData[sTelephone]" class="input" maxlength="30" onblur="saveUserData( this.name, this.value )" />
        </td>
      </tr>
      <tr>
        <th>
          $lang[Email]:
        </th>
        <td>
          <input type="text" name="sEmail" value="$aData[sEmail]" class="input" maxlength="40" onblur="saveUserData( this.name, this.value )" />
        </td>
      </tr>
      <tr>
        <td colspan="3">
          <h4>$lang[Payment_and_shipping]</h4>
        </td>
      </tr>
      <tr id="orderShipping">
        <th>
          $lang[Shipping_type]:
        </th>
        <td colspan="2">
          <select name="iCourier" onchange="ordersCouriers( this );">
            <option value="">$lang[choose]</option>
            $sCouriersSelect
          </select>
        </td>
      </tr>
    </table>
    <script type="text/javascript">
      <!--
      window.onload = function( ){
        checkSavedUserData( );
      }
      //-->
    </script>
    <h4>$lang[Ordered_products]</h4>
    $sBasketList
<!-- END FORM -->
<!-- BEGIN LIST_HEAD -->
    <table id="basket" class="orderDeliveryTable" cellspacing="0">
      <thead>
        <tr>
          <th>
            $lang[Name]
          </th>
          <th class="price">
            <em>$lang[Price]</em><span>[$config[currency_symbol]]</span>
          </th>
          <th class="quantity">
            $lang[Quantity]
          </th>
          <th class="priceTotal">
            <em>$lang[Summary]</em><span>[$config[currency_symbol]]</span>
          </th>
        </tr>
      </thead>
      <tbody>
<!-- END LIST_HEAD -->
<!-- BEGIN LIST_LIST -->
        <tr class="l$aList[sStyle]">
          <td class="name">
            <a href="?p=productsMore&amp;iProduct=$aList[iProduct]">$aList[sProduct]</a>
          </td>
          <td class="price">
            $aList[sPrice]
          </td>
          <td class="quantity">
            $aList[iQuantity]
          </td>
          <td class="priceTotal">
            $aList[sSummary]
          </td>
        </tr>
<!-- END LIST_LIST -->
<!-- BEGIN LIST_FOOT -->
        <tr class="tfoot" id="basketSummary">
          <th colspan="3">
            $lang[Summary_basket]:
          </th>
          <th class="priceTotal" id="orderCost">
            $aList[sSummary]
            <script type="text/javascript">
            <!--
            var fOrderCost = "$aList[fSummary]";
            //-->
            </script>
          </th>
        </tr>
<!-- END LIST_FOOT -->
<!-- BEGIN COURIER -->
        <tr class="tfoot" id="courierSummary">
          <th colspan="3">
            $lang[Delivery_cost]:
          </th>
          <th class="priceTotal" id="deliveryCost">
            0
          </th>
        </tr>
        <tr class="tfoot" id="orderSummary">
          <th colspan="3">
            $lang[Summary_cost]:
          </th>
          <th class="priceTotal" id="summaryCost">
            $aList[sSummary]
          </th>
        </tr>
        <tr class="tfoot">
          <td colspan="4">
            <input type="submit" value="$lang[send]" class="submit" />
          </td>
        </tr>
      </tbody>
    </table>
  </fieldset>
</form>
<!-- END COURIER -->
<!-- BEGIN NOT_FOUND -->
<div id="message">
  <div id="error">
    $lang[basket_is_empty]<br />
    <a href="javascript:history.back();">&laquo; $lang[go_back]</a>
  </div>
</div>
<!-- END NOT_FOUND -->
