function gebi(id) {
    return document.getElementById(id);
}

var activeCountryIds = new Object();

function showCountry(select) {
    var module = select.id;
    if (activeCountryIds[module] != null) {
        gebi(activeCountryIds[module]).style.display = 'none';
    }

    var countryId = select.options[select.selectedIndex].value;
    activeCountryIds[module] = countryId;
    gebi(countryId).style.display = 'block';

}

function init() {
    var registerCountries = gebi('registerCountries');
    var sendCountries = gebi('sendCountries');

    registerCountries.selectedIndex = 0;
    sendCountries.selectedIndex = 0;

    showCountry(registerCountries);
    showCountry(sendCountries);
}
;
