function aviso (mensaje){
    alert (mensaje);
}

//Metodo que identifica el idioma y redirecciona la llama a la versión correcta
//Parametros f: formulario
//           x: id del idioma 
function comprobarIdioma(){
    x = document.form1.idioma.options[document.form1.idioma.selectedIndex].value;

    if (x == "ES" || x == "es"){
        document.location.href = "/webes/notice";
    } else if (x == "FR" || x == "fr"){
        document.location.href = "/webfr/notice";
    } else if (x == "EN" || x == "en"){
        document.location.href = "/weben/notice";
    } else if (x == "PT" || x == "pt"){
        document.location.href = "/webpt/notice";
    }
}

function viewMaximized(url) {
    width = window.screen.availWidth;
    height = window.screen.availHeight;
    features = "toolbar=yes,menubar=yes,resizable=yes,status=yes,location=yes,width=" + width + ", height=" + height + ", top=0, left=0";
    newwindow = window.open(url, "",features);
    if (window.focus) {
        newwindow.focus();
    }
}

//Funcion que visualiza la pantalla de reproducción de video.
//Parametros url: url de la pagina que visualiza el video
function viewVideo(url) {
    width = 600;
    height = 400;
    features = "toolbar=no,menubar=no,resizable=yes,width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2);
    newwindow = window.open(url,"Visor",features);
    if (window.focus) {
        newwindow.focus();
    }
}