
var onDropDownddlCountry = false;

function showHideddlCountry(){
    if(document.getElementById('dropcontainerddlCountry').style.display == ''){
        hideCalddlCountry();
    } else {
        document.getElementById('dropcontainerddlCountry').style.visibility='visible';
        document.getElementById('dropcontainerddlCountry').style.display='';
        document.getElementById('showHideddlCountry').style.display='';
    }
}
function hideCalddlCountry(){
    document.getElementById('dropcontainerddlCountry').style.visibility='hidden';
    document.getElementById('dropcontainerddlCountry').style.display='none';
    document.getElementById('showHideddlCountry').style.display='none';
}
function changeValueddlCountry(id){
    if(document.getElementById('dropCounter'+id).innerHTML != '0'){
        document.getElementById('submitddlCountry').value = id;
        var newCounter = document.getElementById('dropCounter'+id).innerHTML;
        document.getElementById('dropValueddlCountry').innerHTML = document.getElementById('dropValue'+id).innerHTML;
        document.getElementById('dropCounterddlCountry').innerHTML = newCounter;
        showHideddlCountry();
        if('ddlCountry' == 'ddlCountry')
            LoadDropDown('ddlCountry|'+id+'|'+document.getElementById('submitddlMaxpersons').value,'');
        else if('ddlCountry' == 'ddlCountryAlone')
            {/*if only ddlCountry dropdown is used on the page, do nothing*/}
        else if('ddlCountry' == 'ddlMaxpersons')
            LoadDropDown('ddlCountry|'+id+'|'+document.getElementById('submitddlCountry').value,'');
        else if('ddlCountry' == 'ddlCountry2')
            LoadDropDown('ddlCountry|'+id+'|'+document.getElementById('submitddlMaxpersons2').value,'');
        else if('ddlCountry' == 'ddlMaxpersons2')
            LoadDropDown('ddlCountry|'+id+'|'+document.getElementById('submitddlCountry2').value,'');
    }
}
function changeRowMouseOver(id){
    if(document.getElementById('dropCounter'+id).innerHTML == '0'){
        document.getElementById('droprow'+id).className = 'dropdownrowoverdisabled';
    } else {
        document.getElementById('droprow'+id).className = 'dropdownrowover';
    }
}
function changeRowMouseOut(id){
    if(document.getElementById('dropCounter'+id).innerHTML == '0'){
        document.getElementById('droprow'+id).className = 'dropdownrowdisabled';
    } else {
        document.getElementById('droprow'+id).className = 'dropdownrow';
    }
}
function changeValueWithoutCallBackddlCountry(id){
    if(document.getElementById('dropCounter'+id).innerHTML != '0'){
        document.getElementById('submitddlCountry').value = id;
        var newCounter = document.getElementById('dropCounter'+id).innerHTML;
        document.getElementById('dropValueddlCountry').innerHTML = document.getElementById('dropValue'+id).innerHTML;
        document.getElementById('dropCounterddlCountry').innerHTML = newCounter;
        showHideddlCountry();
    }
}