function CambiarPwd(){
    bool = false; 
    if(document.getElementById('adm_pwd').value != document.getElementById('adm_pwd2').value) {
        bool = false;
        alert("Las contraseñas no coinciden");
        document.getElementById('adm_pwd2').focus();
    }
    else{
        bool = true;
    }        
    if(bool){
        document.getElementById('frmdatos').submit();
    }
}

function ComprobarReserva(){
    bool = false; 
    if(document.getElementById('nombre').value == "") {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('nombre').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('apellidos').value == "") {
            bool = false;
            alert("Los apellidos son obligatorios");
            document.getElementById('apellidos').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('email').value == "") {
            bool = false;
            alert("El email es obligatorio");
            document.getElementById('email').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('fecha').value == "") {
            bool = false;
            alert("La fecha de entrada es obligatoria");
            document.getElementById('fecha').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('telefono').value == "") {
            bool = false;
            alert("El teléfono es obligatorio");
            document.getElementById('telefono').focus();
        }
        else{
            bool = true;
        }
    }	
	
    if(bool){
        document.getElementById('form1').submit();
    }
}
function ComprobarContacto(){
    bool = false; 
    if(document.getElementById('nombre').value == "") {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('nombre').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('apellidos').value == "") {
            bool = false;
            alert("Los apellidos son obligatorios");
            document.getElementById('apellidos').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('email').value == "") {
            bool = false;
            alert("El email es obligatorio");
            document.getElementById('email').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('telefono').value == "") {
            bool = false;
            alert("El teléfono es obligatorio");
            document.getElementById('telefono').focus();
        }
        else{
            bool = true;
        }
    }	
	
    if(bool){
        document.getElementById('form1').submit();
    }
}