neanche così...
codice:function submitIt(theform) { if (theform.Nome.value == "") { alert("Obbligatorio"); theform.Nome.focus(); return false; } if (theform.Cognome.value == "") { alert("Obbligatorio"); theform.Cognome.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("Obbligatorio"); theform.Email.focus(); theform.Email.select(); return(false); } else { popup(); return controllo(); } } function controllo() { var risposta = false; risposta = confirm("Avviso"); if(risposta) { return(true); } else { theform.Email.focus(); return (false); } .... <a href="javascript:Forum()"> [img]sms.gif[/img]</a>

Rispondi quotando