Salve,

ho una pagina Valid XHTML 1.0 Strict,

in questa pagina è presente un modulo, con rispettivo controllo in js.

il controllo non funziona

perchè ?

questo è il codice completo della pagina:

codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Modulo</title>
<script type="text/javascript">
  function Modulo(destinazione) {

     var Immobile = document.getElementById('annuncio').immobile;
		
        if ((Immobile == "") || (Immobile == "undefined")) {
           alert("Il campo Immobile non è Valido.");
           document.getElementById('annuncio').immobile.focus();
           return false;
        }

        else {
           document.getElementById('annuncio').action = destinazione;
           document.getElementById('annuncio').submit();
        }
  }
</script>
</head>

<body>
	<form action="#" method="post" id="annuncio">
		<fieldset>
			<legend>Nuovo Immobile:</legend>
				

<label for="immobile">Immobile: </label>
<input name="immobile" type="text" id="immobile" value="" size="20" /></p>
				

<input onclick="Modulo('modulo_edit_prodotto_2.asp')" type="submit" name="Submit" value="Invia" /></p>
		</fieldset>
		</form>
</body>
</html>
grazie di cuore