?>
</td>
          </tr>
<?php 
if (ACCOUNT_STATE == 'true') {
    ?>
          <tr>
            <td class="main" width="170">&nbsp;<?php 
    echo ENTRY_STATE;
    ?>
</td>
            <td class="main"><div id="states">&nbsp;
<?php 
    $state = sbs_get_zone_name($country, $zone_id);
    if ($is_read_only) {
        echo sbs_get_zone_name($account['entry_country_id'], $account['entry_zone_id']);
    } else {
        // +Country-State Selector
        echo ajax_get_zones_html($country, '', false);
        // -Country-State Selector
    }
    ?>
            </div></td>
          </tr>
<?php 
}
?>
          <tr>
            <td class="main" width="170">&nbsp;<?php 
echo ENTRY_COUNTRY;
?>
          </tr>
<?php 
if (ACCOUNT_STATE == 'true') {
    ?>
          <tr>
            <td class="main">&nbsp;<?php 
    echo ENTRY_STATE;
    ?>
</td>
            <td class="main">&nbsp;
<?php 
    $state = sbs_get_zone_name($country, $zone_id, $state);
    if ($is_read_only) {
        echo sbs_get_zone_name($address['entry_country_id'], $account['entry_zone_id'], $account['entry_state']);
    } else {
        echo tep_draw_input_field('state', sbs_get_zone_name($address['entry_country_id'], $address['entry_zone_id'], $address['entry_state'])) . '&nbsp; <font color="#FF0000">*</font>';
    }
    ?>
</td>
             </tr>
<?php 
}
?>
             <tr>
               <td class="main">&nbsp;<?php 
echo ENTRY_COUNTRY;
?>
</td>
               <td class="main">&nbsp;
<?php 
if ($is_read_only) {
        if ($entry_state_error) {
            if ($entry_state_has_zones) {
                $zones_array = array();
                $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($country) . "' order by zone_name");
                while ($zones_values = tep_db_fetch_array($zones_query)) {
                    $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
                }
                echo tep_draw_pull_down_menu('state', $zones_array) . '&nbsp;' . ENTRY_STATE_ERROR;
            } else {
                echo tep_draw_input_field('state') . '&nbsp;' . ENTRY_STATE_ERROR;
            }
        } else {
            echo $state . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state');
        }
    } else {
        echo tep_draw_input_field('state', sbs_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . '&nbsp;';
    }
    ?>
</td>
             </tr>
<?php 
}
?>
             <tr>
               <td class="main">&nbsp;<?php 
echo ENTRY_COUNTRY;
?>
</td>
               <td class="main">&nbsp;
<?php 
$account['entry_country_id'] = STORE_COUNTRY;