Ciao devo controllare che nel campo mailbox di un form non venga erroneamente inserito il suffisso @miodominio.it, ho scritto così ma non funziona:codice:<script language="JavaScript"> <!-- function submitIt(theform) { if (theform.mailbox.value == "@miodominio.it") { alert("errore"); theform.mailbox.focus(); return false; } if (theform.pwd.value == "") { alert("errore"); theform.pwd.focus(); return false; } re = new RegExp("^[!#$&'*+/-9=?A-Z^-~-]+(\\.[!#$&'*+/-9=?A-Z^-~-]+)*@[!#$&'*+/-9=?A-Z^-~-]+(\\.[!#$&'*+/-9=?A-Z^-~-]+)+$", "i"); if (!theform.Email.value.match(re)) { alert("errore"); theform.Email.focus(); theform.Email.select(); return(false); } } --> </script>