function participaOpinion(){
    bool = false; 
    if(document.getElementById('nombre1').value == '' || document.getElementById('nombre1').value == 'Escribe tu nombre') {
        bool = false;
        alert('Nombre obligatorio');
        document.getElementById('nombre1').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('seguridad1').value == '' || document.getElementById('seguridad1').value == 'Escribe lo que ves') {
            bool = false;
            alert('Código de verificación obligatorio');
            document.getElementById('seguridad1').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('opinion1').value == '' || document.getElementById('opinion1').value == 'Escriba tu opinión') {
            bool = false;
            alert('Opinión obligatoria');
            document.getElementById('opinion1').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmdatos1').submit();
    }   
}
function participaPropon(){
    bool = false; 
    if(document.getElementById('nombre2').value == '' || document.getElementById('nombre2').value == 'Escribe tu nombre') {
        bool = false;
        alert('Nombre obligatorio');
        document.getElementById('nombre2').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('seguridad2').value == '' || document.getElementById('seguridad2').value == 'Escribe lo que ves') {
            bool = false;
            alert('Código de verificación obligatorio');
            document.getElementById('seguridad2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('opinion2').value == '' || document.getElementById('opinion2').value == 'Escriba tu proposición') {
            bool = false;
            alert('Proposición obligatoria');
            document.getElementById('opinion2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmdatos2').submit();
    }   
}
function contacta(){
    bool = false; 
    if(document.getElementById('nombre2').value == '' || document.getElementById('nombre2').value == 'Escribe tu nombre') {
        bool = false;
        alert('Nombre obligatorio');
        document.getElementById('nombre2').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('seguridad2').value == '' || document.getElementById('seguridad2').value == 'Escribe lo que ves') {
            bool = false;
            alert('Código de verificación obligatorio');
            document.getElementById('seguridad2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('opinion2').value == '' || document.getElementById('opinion2').value == 'Escribe tu comentario') {
            bool = false;
            alert('Proposición obligatoria');
            document.getElementById('opinion2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmdatos2').submit();
    }   
}
/*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 Cambiaradmsesion(){
    if(isNaN(parseInt(document.getElementById('admsesion').value)) || document.getElementById('admsesion').value == 0 || document.getElementById('admsesion').value > 60) {
        bool = false;
        alert('Valor para la sesión incorrecto. Valores: 1 a 60');
        document.getElementById('admsesion').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        document.getElementById('frmdatos').submit();
    }
}
function ponerGris() {
    var ns6 = (!document.all && document.getElementById);
    var ie4 = (document.all);
    var ns4 = (document.layers);
    
    if(ns6||ns4) {
        document.getElementById('contenedorglobal').style.MozOpacity=0.10;
        pageWidth = innerWidth;
        pageHeight = innerHeight;
    }
    else if(ie4) {
        document.getElementById('contenedorglobal').style.filter='alpha(opacity=10)';
        pageWidth = document.body.clientWidth;
        pageHeight = document.body.clientHeight;
    }
    location.href="#contenedorglobal";
}
function quitarGris() {
    var ns6 = (!document.all && document.getElementById);
    var ie4 = (document.all);
    var ns4 = (document.layers);
    
    if(ns6||ns4) {
        document.getElementById('contenedorglobal').style.MozOpacity=1;
        pageWidth = innerWidth;
        pageHeight = innerHeight;
    }
    else if(ie4) {
        document.getElementById('contenedorglobal').style.filter='alpha(opacity=100)';
        pageWidth = document.body.clientWidth;
        pageHeight = document.body.clientHeight;
    }
}
function enviarLateral(){
    bool = false; 
    if(document.getElementById('nombre').value == '' || document.getElementById('nombre').value == 'Campo obligatorio') {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('politicalateral').checked=0;
        document.getElementById('nombre').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('email').value == '' || document.getElementById('email').value == 'Campo obligatorio') {
            bool = false;
            alert("El email es obligatorio");
            document.getElementById('politicalateral').checked=0;
            document.getElementById('email').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('cuentanos').value == '' || document.getElementById('cuentanos').value == 'Campo obligatorio') {
            bool = false;
            alert("Tienes que contarnos algo");
            document.getElementById('politicalateral').checked=0;
            document.getElementById('cuentanos').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(!document.getElementById('politicalateral').checked) {
            bool = false;
            alert("Debes aceptar la política de privacidad");
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmlateral').submit();
    }
}
function enviarContacto(){
    bool = false; 
    if(document.getElementById('nombre2').value == '' || document.getElementById('nombre2').value == 'Escribe tu nombre o el de tu empresa (Campo obligatorio)') {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('politica').checked=0;
        document.getElementById('nombre2').focus();
    }
    else{
        bool = true;
    }
    if(bool){
        if(document.getElementById('email2').value == '' || document.getElementById('email2').value == 'Escribe un e-mail válido donde contactarte (Campo obligatorio)') {
            bool = false;
            alert("El email es obligatorio");
            document.getElementById('politica').checked=0;
            document.getElementById('email2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('dirigido2').value == '' || document.getElementById('dirigido2').value == '0') {
            bool = false;
            alert("No has seleccionado a quien quieres mandar el email");
            document.getElementById('politica').checked=0;
            document.getElementById('dirigido2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(document.getElementById('observaciones2').value == '' || document.getElementById('observaciones2').value == 'Cuéntanos (Campo obligatorio)') {
            bool = false;
            alert("Tienes que contarnos algo");
            document.getElementById('politica').checked=0;
            document.getElementById('observaciones2').focus();
        }
        else{
            bool = true;
        }
    }
    if(bool){
        if(!document.getElementById('politica').checked) {
            bool = false;
            alert("Debes aceptar la política de privacidad");
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmdatos').submit();
    }
}
function enviarOferta(){
    bool = false; 
    if(document.getElementById('nombre').value == '' || document.getElementById('nombre').value == 'Escriba su nombre/empresa') {
        bool = false;
        alert("El nombre es obligatorio");
        document.getElementById('nombre').focus();
    }
    else{
        bool = true;
    }    

    if(bool){
        if(document.getElementById('telefono').value == '' || document.getElementById('telefono').value == 'Escriba su nº de teléfono') {
            bool = false;
            alert("El teléfono es obligatorio");
            document.getElementById('telefono').focus();
        }
        else{
            bool = true;
        }
    }
    
    if(bool){
        if(document.getElementById('mail').value == '' || document.getElementById('mail').value == 'Escriba su correo electrónico') {
            bool = false;
            alert("El correo electrónico es obligatorio");
            document.getElementById('mail').focus();
        }
        else{
            bool = true;
        }
    }
    
    if(bool){
        if(document.getElementById('consulta').value == '' || document.getElementById('consulta').value == 'Escriba su consulta') {
            bool = false;
            alert("La consulta es obligatoria");
            document.getElementById('consulta').focus();
        }
        else{
            bool = true;
        }
    }

    if(bool){
        if(!document.getElementById('politica').checked) {
            bool = false;
            alert("Debes aceptar la política de privacidad");
        }
        else{
            bool = true;
        }
    }
    if(bool){
        document.getElementById('frmdatos').submit();
    }
}*/
