raga ho un problema analogo che però non riesco a risolvere...

ho praticamente questa funzioncina in js

Codice PHP:
    <SCRIPT LANGUAGE="JavaScript">
      function 
azione(tipo) {
        switch (
tipo) {
          case 
"CONFERMA DEFINITIVA": { 
                if (
document.form.nome.value.length==0) {alert ("Inserire il Nome");break;}
                if (
document.form.cognome.value.length==0) {alert ("Inserire il cognome");break;}
                if ((
document.form.mail.value.indexOf('@',0)=="-1") || (document.form.mail.value.indexOf('.',0)=="-1")){alert ("Non hai inserito un indirizzo e-mail corretto!");break;}
            
                
document.form.submit(); break; 
           }
          case 
"Annulla": { history.back(); break; }
        }
      }
    
</SCRIPT> 
poi...

Codice PHP:
<form action="azioniute.php" method="post" enctype="multipart/form-data" name="form" id="form"
qui poi i vari campi.... e alla fine

Codice PHP:
<input type="button" name="Submit" value=" Inserisci utente " onClick="javascript:azione('CONFERMA DEFINITIVA');" />
<
input type="reset" name="Annulla" value="Reset" onClick="javascript:azione('Annulla');" /> 
questo va tutto bene su IE, ma su firefox non va avanti, come potrei modificarlo, se possibile?