function openWin(URL,target,ancho,alto,left,top,scroll)
{   var wWidth = "width="+ ancho;
    var hHeight = ",height="+ alto;
    var lLeft = ",left="+ left;
    var tTop = ",top="+ top;
    var parameters = wWidth + hHeight + lLeft + tTop;
    if (scroll) { parameters += ",scrollbars=yes"; }
    var newWindow = window.open (URL,target,parameters);
    newWindow.focus();
}

function changeLocale(comboLanguage, comboCountry){
    var thisUrl = window.location.pathname;
    var language = comboLanguage[comboLanguage.selectedIndex].value;
    var country = comboCountry[comboCountry.selectedIndex].value;
    window.location.href=thisUrl+"?language="+language+"&country="+country;
}

function webLinkClick(homeUrl, searchUrl) {
    if (document.getElementById('searchBox').value) {
        document.searchForm.action=searchUrl;
        document.searchForm.submit();
    } else {
         window.location.href=homeUrl;
    }
}

function weatherLinkClick(homeUrl, weatherGeoSearchUrl) {
    document.searchForm.action=weatherGeoSearchUrl;
    document.searchForm.submit();
}
