"; return ad; } // --> //VALIDAZIONE E-MAIL function checkform() { if (theForm.email.value == "") { alert("L' email e' obbligatoria!"); theForm.email.focus(); return (false); } if (theForm.email.value!="") { if (theForm.email.value.length<6) { alert("L'email inserita e' troppo corta.\n(es: nome@nomeweb.com)"); theForm.email.focus(); return (false); } if (theForm.email.value.indexOf('.')==-1) { alert("L'email inserita non e' valida.\n(es: nome@nomeweb.com)"); theForm.email.focus(); return (false); } if (theForm.email.value.indexOf('@')==-1) { alert("L'email inserita non e' valida.\n(es: nome@nomeweb.com)"); theForm.email.focus(); return (false); } if (theForm.email.value.indexOf('@')!=theForm.email.value.lastIndexOf('@')) { alert("L'email inserita non e' valida.\n(es: nome@nomeweb.com)"); theForm.email.focus(); return (false); } if (theForm.email.value.indexOf(':')!=-1) { alert("L'email inserita non e' valida.\n(es: nome@nomeweb.com)"); theForm.email.focus(); return (false); } if (theForm.email.value.indexOf(' ')!=-1) { alert("L'email inserita non e' valida.\nNon utilizzare spazi.\n(es: nome@nomeweb.com)"); theForm.email.focus(); return (false); } } }