function CambiarPwd(){
    bool = false; 
    if(document.getElementById('admpwd').value != document.getElementById('admpwd2').value) {
        bool = false;
        alert("Las contraseñas no coinciden");
        document.getElementById('admpwd2').focus();
    }
    else{
        bool = true;
    }        
    if(bool){
        document.getElementById('frmdatos').submit();
    }
}
function MM_effectBlind(targetElement, duration, from, to, toggle)
{
    Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function CambiaEdi(id){
    location.href = "frmfestivalespalmareseditar.php?edi="+id+"&idpremio="+document.getElementById('preid').value;
}
function CambiaEdi2(id){
    location.href = "frmfestivalessesioneseditar.php?edi="+id;
}
function CambiaJurado(id){
    location.href = "frmfestivalespalmareseditar.php?jur="+id+"&idpremio="+document.getElementById('preid').value+"&edi="+document.getElementById('ediid').value;
}
function CambiarCategoria(id,pagina){
    location.href = pagina+".php?idcategoria="+id;
}


function profesionales(){
    bool = false; 
    if(document.getElementById('Empresa').value == '' || document.getElementById('Empresa').value == document.getElementById('oculto').value) {
        bool = false;
        alert(document.getElementById('obligatorio').value);
        document.getElementById('Empresa').focus();
    }
    else{
        bool = true;
    }
    if(bool){ 
        if(document.getElementById('Cargo').value == '' || document.getElementById('Cargo').value == document.getElementById('oculto').value) {
            bool = false;
            alert(document.getElementById('obligatorio').value);
            document.getElementById('Cargo').focus();
        }
        else{
            bool = true;
        }
    }
    /*if(bool){ 
        if(document.getElementById('Telefono').value == '' || document.getElementById('Telefono').value == document.getElementById('oculto').value) {
            bool = false;
            alert(document.getElementById('obligatorio').value);
            document.getElementById('Telefono').focus();
        }
        else{
            bool = true;
        }
    }*/
    if(bool){ 
        if(document.getElementById('Email').value == '' || document.getElementById('Email').value == document.getElementById('oculto').value) {
            bool = false;
            alert(document.getElementById('obligatorio').value);
            document.getElementById('Email').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Apellidos').value == '' || document.getElementById('Apellidos').value == document.getElementById('oculto').value) {
            bool = false;
            alert(document.getElementById('obligatorio').value);
            document.getElementById('Apellidos').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Nombre').value == '' || document.getElementById('Nombre').value == document.getElementById('oculto').value) {
            bool = false;
            alert(document.getElementById('obligatorio').value);
            document.getElementById('Nombre').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmprofesionales').submit();
    } 
}

function prensa(){
    bool = false; 
    if(document.getElementById('Medio').value == '' || document.getElementById('Medio').value == document.getElementById('oculto2').value) {
        bool = false;
        alert(document.getElementById('obligatorio2').value);
        document.getElementById('Medio').focus();
    }
    else{
        bool = true;
    }
    if(bool){ 
        if(document.getElementById('profesion').value == '' || document.getElementById('profesion').value == document.getElementById('oculto2').value) {
            bool = false;
            alert(document.getElementById('obligatorio2').value);
            document.getElementById('profesion').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Nombre2').value == '' || document.getElementById('Nombre2').value == document.getElementById('oculto2').value) {
            bool = false;
            alert(document.getElementById('obligatorio2').value);
            document.getElementById('Nombre2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Apellidos2').value == '' || document.getElementById('Apellidos2').value == document.getElementById('oculto2').value) {
            bool = false;
            alert(document.getElementById('obligatorio2').value);
            document.getElementById('Apellidos2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Movil').value == '' || document.getElementById('Movil').value == document.getElementById('oculto2').value) {
            bool = false;
            alert(document.getElementById('obligatorio2').value);
            document.getElementById('Movil').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Email3mio').value == '' || document.getElementById('Email3mio').value == document.getElementById('oculto2').value) {
            bool = false;
            alert(document.getElementById('obligatorio2').value);
            document.getElementById('Email3mio').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('Foto2').value == '') {
            bool = false;
            alert(document.getElementById('obligatorio2').value);
            document.getElementById('Foto2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmprensa').submit();
    } 
}
