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 CambiarPatrocinadores(id){
    location.href = "frmpatrocinadores.php?idcategoria="+id;
}
function CambiarExpositores(id){
    location.href = "frmexpositores.php?idcategoria="+id;
}
function CambiarFotos(id){
    location.href = "frmfotos.php?idcategoria="+id;
}
function CambiarProgramas(id){
    location.href = "frmprogramas.php?idcategoria="+id;
}
function CambiarNoticias(id){
    location.href = "frmnoticias.php?idcategoria="+id;
}

function MM_effectBlind(targetElement, duration, from, to, toggle){
    Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function Contacto(){
    bool = false; 
    if(document.getElementById('Nombre').value == '' || document.getElementById('Nombre').value == 'nombre') {
        bool = false;
        alert('Nombre obligatorio');
        document.getElementById('Nombre').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('Apellidos').value == '' || document.getElementById('Apellidos').value == 'apellidos') {
            bool = false;
            alert('Apellidos obligatorios');
            document.getElementById('Apellidos').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('Email').value == '' || document.getElementById('Email').value == 'email') {
            bool = false;
            alert('Email obligatorio');
            document.getElementById('Email').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('Observaciones').value == '' || document.getElementById('Observaciones').value == 'comentario') {
            bool = false;
            alert('Comentario obligatorio');
            document.getElementById('Observaciones').focus();
        }
        else{
            bool = true;
        }
    } 
    if(bool){
        document.getElementById('frmdatos').submit();
    }   
}
/*
function CambiarCategorias(id){
    location.href = "frmsubcategorias.php?idcategoria="+id;
}
function CambiarPestana2(id){
    location.href = "frmmasters.php?idpestana="+id;
}
function CambiarCategoria2(id){
    location.href = "frmmasters.php?idpestana="+document.getElementById('idpestana').value+"&idcategoria="+id;
}
function CambiarSubcategoria2(id){
    location.href = "frmmasters.php?idpestana="+document.getElementById('idpestana').value+"&idcategoria="+document.getElementById('idcategoria').value+"&idsubcategoria="+id;
}
function CambiarSubsubcategoria2(id){
    location.href = "frmmasters.php?idpestana="+document.getElementById('idpestana').value+"&idcategoria="+document.getElementById('idcategoria').value+"&idsubcategoria="+document.getElementById('idsubcategoria').value+"&idsubsubcategoria="+id;
}
function CambiarPestana3(id){
    location.href = "frmcursos.php?idpestana="+id;
}
function CambiarCategoria3(id){
    location.href = "frmcursos.php?idpestana="+document.getElementById('idpestana').value+"&idcategoria="+id;
}
function CambiarSubcategoria3(id){
    location.href = "frmcursos.php?idpestana="+document.getElementById('idpestana').value+"&idcategoria="+document.getElementById('idcategoria').value+"&idsubcategoria="+id;
}
function CambiarSubsubcategoria3(id){
    location.href = "frmcursos.php?idpestana="+document.getElementById('idpestana').value+"&idcategoria="+document.getElementById('idcategoria').value+"&idsubcategoria="+document.getElementById('idsubcategoria').value+"&idsubsubcategoria="+id;
}
*/