document.write(''); document.write(''); document.write(''); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(' '); document.write('
'); document.write(' '); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
ONDA UTRERA
'); document.write(' ¿QUIÉNES SOMOS?
PROGRAMACIÓN Y PROGRAMASINFORMACIÓN
'); document.write('Y NOTICIAS
CENTROS DE
'); document.write(' FORMACIÓN
ESPECIALESUTRERA
'); document.write(' Y SU ENTORNO
'); document.write(''); document.write(''); function mandafirmas() { if (document.firmas.nombre.value=="") { alert('Rellene el campo nombre.'); } else if (document.firmas.poblacion.value=="") { alert('Rellene el campo poblacion.'); } else if (document.firmas.provincia.value=="") { alert('Rellene el campo provincia.'); } else if (document.firmas.email.value=="") { alert('Rellene el campo email.'); } else if (mail(document.firmas.email.value)==false) { alert('El correo electrónico no es correcto.'); } else if (document.firmas.comentario.value=="") { alert('Debe escribir algún comentario.'); } else if (document.firmas.comentario.value.length>250) { alert('El comentario es demasiado largo.\nDebe tener 250 caracteres como máximo.'); } else { document.firmas.submit(); } } function mail(texto){ var mailres = true; var cadena = "abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ1234567890@._-"; var arroba = texto.indexOf("@",0); if ((texto.lastIndexOf("@")) != arroba) arroba = -1; var punto = texto.lastIndexOf("."); for (var contador = 0 ; contador < texto.length ; contador++){ if (cadena.indexOf(texto.substr(contador, 1),0) == -1){ mailres = false; break; } } if ((arroba > 1) && (arroba + 1 < punto) && (punto + 1 < (texto.length)) && (mailres == true) && (texto.indexOf("..",0) == -1)) mailres = true; else mailres = false; return mailres; }