function getCountryInputHtml($pAddressHash) { if (!($selectedCountry = BitBase::getIdParameter($pAddressHash, 'country_id'))) { if (!($selectedCountry = BitBase::getIdParameter($pAddressHash, 'entry_country_id'))) { $selectedCountry = defined('STORE_COUNTRY') ? STORE_COUNTRY : NULL; } } return zen_get_country_list('country_id', $selectedCountry, ' onchange="updateStates(this.value)" '); }