<SCRIPT type="text/javascript" language="JavaScript">
<xsl:comment>
<xsl:text disable-output-escaping="yes">
<![CDATA[
location_select_id = "location";
city_select_id = "sel_city";
cityarea_select_id = "sel_city_area";
]]>
</xsl:text>
</xsl:comment>
</SCRIPT>
<form name="address" id="address" method="POST">
<h1>Адрес доставки</h1>
<p>
<a href="{shop/path}cart/">Корзина</a>
</p>
<table>
<tr>
<td>Страна:</td>
<td>
<select id="country" name="country" onchange="doSetLocation(this.options[this.selectedIndex].value, '{/locations/shop/path}cart/'

">
<xsl:apply-templates select="country"/>
</select>
</td>
</tr>
<tr>
<td>Область:</td>
<td>
<xsl:variable name="country_id" select="/locations//country[@select = 1]/@id" />
<select name="location" id="location" onchange="doSetCity(this.options[this.selectedIndex].value, '{/locations/shop/path}cart/'

">
<option value="0">..</option>
<xsl:apply-templates select="location[@parent = $country_id]"/>
</select>
</td>
</tr>
<tr>
<td>Город:</td>
<td>
<select name="sel_city" id="sel_city" onchange="doSetCityArea(this.options[this.selectedIndex].value, '{/locations/shop/path}cart/'

">
<option value="0">..</option>
<xsl:apply-templates select="city[@parent = location[@parent = $country_id]]"/>
</select>
</td>
</tr>
<tr>
<td>Район города:</td>
<td>
<select name="sel_city_area" id="sel_city_area">
<option value="0">..</option>
</select>
</td>
</tr>
<tr>
<td>Индекс:</td>
<td>
<input type="text" size="5" name="index" value=""/>
</td>
</tr>
<tr>
<td>Улица, дом, квартира:<br/>
(город, район, если не выбраны)</td>
<td>
<input type="text" size="30" name="full_address" value=""/>
</td>
</tr>
<tr>
<td>
<input name="step_2" value="Далее >>" type="submit"></input>
</td>
</tr>
</table>
</form>