perdonami, ma non riesco a farlo funzionare, la popup si continua ad aprire, codice:
codice:
<script language="JavaScript"> 
<!-- 
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);
   } 
--> 
    </script>