function verTextoCompleto(textoReducido,textoCompleto){

    textoReducido = document.getElementById(textoReducido);
    textoCompleto = document.getElementById(textoCompleto);
    
    if(textoCompleto.style.display=='none'){
      textoReducido.style.display='none';
      textoCompleto.style.display='';
    }else{
      textoCompleto.style.display='none';
      textoReducido.style.display='';
    }

}


function emailCheck (valor) {

    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
        return (true)
    } else {
        return (false);
    }

}




function checkUsuarioNewsletter(form){
       
    var objNombre = form.nombre;
    var objApellido1 = '' //form.apellido1;  
    var objApellido2 = '' //form.apellido2;    
    var objEmail = form.email;
     
    if (objNombre.value == '') {
        alert('Introduzca su nombre ');
        objNombre.focus();
        return false;
    }
     
    if(objEmail.value == ''){
        alert('Introduzca su email ');
        objNombre.focus();
        return false;
    }else if (!emailCheck(objEmail.value)) {
        alert('Introduzca un email valido'); 
        objEmail.focus();
        return false;
    }
    
        
    form.submit();
    

}



