Salve a tutti, problemino:

Ho creato con i tools di DreamWeaver un select che lancia direttamente ciò che viene selezionato, in pratica DreamWeaver ha generato uno scriptino per fare ciò:

codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento senza titolo</title>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>

</head>

<body>
<form name="form1" method="post" action="">
             <select name="menu" onChange="MM_jumpMenu('parent',this,0)">
                 <option value="http://www.tin.it">TIN</option>
                 <option value="http://www.tim.it">TIM</option>
             </select>
</form>
</body>
</html>
fin qui tutto bene, ma se le voci in elenco si limitassero ad una non funziona più:

codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento senza titolo</title>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>

</head>

<body>
<form name="form1" method="post" action="">
             <select name="menu" onChange="MM_jumpMenu('parent',this,0)">
                 <option value="http://www.tin.it">TIN</option>
             </select>
</form>
</body>
</html>
Dal momento che il mio elenco è generato dinamicamente, può contenere anche solo una voce ma così non ci faccio niente

Chi di voi saprebbe aiutarmi?

Grazie,
AleX