Modifico così ma non va...codice:<script language="javascript" type = "text/javascript"> <!-- function vai(theform){ var test; var cat; var Email; if (theform.cat.value == "") { alert("Attenzione!\nSelezionare il \"CAT\" di appartenenza è obbligatorio."); theform.cat.focus(); test="false"; } var re = new RegExp("^[!#$&'*+/-9=?A-Z^-~-]+(\\.[!#$&'*+/-9=?A-Z^-~-]+)*@[!#$&'*+/-9=?A-Z^-~-]+(\\.[!#$&'*+/-9=?A-Z^-~-]+)+$",""); if (!theform.Email.value.match(re)) { alert("Attenzione!\nIl campo \"Email\" è obbligatorio."); theform.Email.focus(); theform.Email.select(); test="false"; } test="true"; if (test=="true") { document.form.action="indexteo.asp"; document.form.target="_blank"; document.form.submit(theform); } } --> </script>

Rispondi quotando