function getSelValue(selectId){ var objSel = document.getElementById(selectId); return objSel.options[objSel.selectedIndex].value; }

function changeConf(p_curr, p_lang, p_form){
    var moned = getSelValue(p_curr);
    var idiom = getSelValue(p_lang);
    var formul = document.getElementById(p_form);
    var dominio = null;
    if(moned=="EUR"){ moned = getcodWebEUR(idiom); }
    document.getElementById("lanG").value = idiom;
    document.getElementById("codWeb").value = moned;
    formul.submit();
}

function getcodWebEUR(p_param) 
{  
    var codEUR = "hie";
    switch(p_param)
    {
        case "ALE": codEUR="hde"; break;
        case "FRA": codEUR="hfr"; break;
        case "ITA": codEUR="hit"; break;
        case "CAS": codEUR="hes"; break;
        case "HOL": codEUR="hnl"; break;
        case "DAN": codEUR="hdk"; break;
        case "POR": codEUR="hpt"; break;
    }
    return codEUR;
}
