ho fatto questo form.. funzionano tutti i controlli che ho inserito, tranne il controllo della coincidenza della password e della conferma password. In cosa sbaglio? Grazie!

<?xml version = "1.0"? encoding="utf-8"?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>CPoW - Registrazione nuovo utente</title>

<script language="JavaScript">

function controllo(modulo) {
var espressione = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

if(modulo.nome.value=="") {
alert("Attenzione! Inserisci il nome.");
modulo.nome.focus();
return false;
}
if(modulo.email.value=="") {
alert("Attenzione! Inserisci l'e-mail.");
modulo.email.focus();
return false;
}
if (!espressione.test(modulo.email.value)){
alert("La mail inserita non e' valida!");
modulo.email.focus();
return false;
}
if(modulo.user.value=="") {
alert("Attenzione! Inserisci l'username.");
modulo.user.focus();
return false;
}
if(modulo.pass.value=="") {
alert("Attenzione! Inserisci la password.");
modulo.pass.focus();
return false;
}
if(modulo.pass2.value=="") {
alert("Attenzione! Conferma la password.");
modulo.pass2.focus();
} return false;

if((modulo.pass.value) != (modulo.pass2.value)) {
alert("Le password non coincidono!");
modulo.pass.focus();
modulo.pass.select();
return false;
}
return true;

}



</script>

</head>

<body>
<h1>Registrazione nuovo utente</h1>
<form name = "modulo" onSubmit="return controllo(this)" method = "post" action = "">
<ul>

[*]

<label>Nome *:
<input name = "nome" type = "text" size = "20" maxlenght = "20" />
</label></p>

[*]

<label>E-mail *:
<input name = "email" type = "text" size = "30" maxlenght = "30" />
</label></p>

[*]

<label>Eta':
<input name = "eta" type = "text" size = "1" maxlenght = "1" />
</label></p>

[*]

<label>Username *:
<input name = "user" type = "text" size = "20" maxlenght = "20" />
</label></p>

[*]

<label>Password *:
<input name = "pass" type = "password" size = "5" maxlenght = "20" />
</label></p>

[*]

<label>Conferma password *:
<input name = "pass2" type = "password" size = "5" maxlenght = "20" />
</label></p>
[/list]

</br>


<input type = "submit" value = "Conferma dati inseriti" />
<input type = "reset" value = "Resetta tutti i campi" />
</p>


*I campi sono obbligatori.</p>
</form>
</body>
</html>