Ho un problema con internet explorer e il sottostante codice. Premetto che con firefox, lo script funziona alla perfezione senza dare errori.

<html>
<head>
<script type="text/javascript">
<!--
function checkForm(form)
{
//controllo che i 3 dati fondamentali user_name, password ed email, non siano null
if (!(window.document.add_user_form.user_name.value) | !(window.document.add_user_form.password.value) | !(window.document.add_user_form.password2.value) | !(window.document.add_user_form.password.value) | !(window.document.add_user_form.email.value))
{
var elemErrore = window.document.createElement("err");
elemErrore.appendChild(window.document.createTextN ode("I campi Username, Password ed email non possono essere vuoti."));
window.document.getElementById("errore").appendChi ld(elemErrore);
return false;
}
//il check è andato a buon fine
else
{
return true;
}
}

-->
</script>
</head>
<body>
<form name="add_user_form" method="post" onsubmit="return checkForm(this)">
Nome:

<input type="text" name="nome" size="25" maxlength="40">


Cognome:

<input type="text" name="cognome" size="25" maxlength="40">


Username:

<input type="text" name="user_name" size="25" maxlength="25">


Password:

<input type="password" name="password" size="25" maxlength="25">


Conferma password:

<input type="password" name="password2" size="25" maxlength="25">


email:

<input type="text" name="email" size="30" maxlength="255">


Admin?
<input type="checkbox" name="admin">


<input type="submit" name="submit" value="Aggiungi">


<font color=red><erroreCheckForm id="errore"><err></err><erroreCheckForm/></font>
</form>
</body>
</html>


Se provo a far girare la pagina su ie e lascio appositamente vuoto uno dei campi che dovrebbero essere riempiti, ottengo questo errore: riga 12 carattere 6 (ossia subito dopo "window"), Chiamata inattesa al metodo o alla proprietà di accesso.
Suppongo sia una delle varie differenze tra i vari browser che vanno considerate durante lo scripting: potreste aiutarmi a capire quale? Grazie in anticipo.

Ps. con la formattazione del forum, si perde il conto delle righe. La riga incriminata è questa:

window.document.getElementById("errore").appendChi ld(elemErrore);