function EnviarContacto(){
    bool = false; 
    if(document.getElementById('nombre').value == "" || document.getElementById('nombre').value == "Nombre") {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('nombre').focus();
    }
    else{
        bool = true;
    }
    if(bool){ 
        if(document.getElementById('mail').value == "" || document.getElementById('mail').value == "Email") {
            bool = false;
            alert("El email es obligatorio");
            document.getElementById('mail').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('comentario').value == "" || document.getElementById('comentario').value == "Comentario") {
            bool = false;
            alert("El comentario es obligatorio");
            document.getElementById('comentario').focus();
        }
        else{
            bool = true;
        }
    }       
    if(bool){
        document.getElementById('form1').submit();
    }
}

function EnviarLibro(){
    bool = false; 
    if(document.getElementById('nombre').value == "" || document.getElementById('nombre').value == "Nombre") {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('nombre').focus();
    }
    else{
        bool = true;
    }
    if(bool){ 
        if(document.getElementById('mail').value == "" || document.getElementById('mail').value == "Email") {
            bool = false;
            alert("El email es obligatorio");
            document.getElementById('mail').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){ 
        if(document.getElementById('comentario').value == "" || document.getElementById('comentario').value == "Comentario") {
            bool = false;
            alert("El comentario es obligatorio");
            document.getElementById('comentario').focus();
        }
        else{
            bool = true;
        }
    }       
    if(bool){
        document.getElementById('form1').submit();
    }
}
