Mel: Feldinhalte abhängig von Auswahl ändern (Syntax falsch?)

Beitrag lesen

Eigenartig, hab den Browser leider nicht hier zum testen.
Eine alternative Syntax fuer das javascript waere:

-------------------snip---------------
<script language="Javascript1.2">
function einheit(){
if(document.bericht.wprod1.selectedIndex == 0){
document.bericht.einheit1.selectedIndex = 0;
}
else if(document.bericht.wprod1.selectedIndex != 0){
if(document.bericht.wprod1.selectedIndex == 2 || document.bericht.wprod1.selectedIndex == 5 || document.bericht.wprod1.selectedIndex == 6 || document.bericht.wprod1.selectedIndex == 13){
document.bericht.einheit1.selectedIndex = 2;
}
else {
document.bericht.einheit1.selectedIndex = 1;
}
}
}
</script>
-------------------snip---------------

Wenn das auch nicht geht - keine Ahnung.

Viel Glueck, Mel