herbert1204: zwei Scripte

Hallo
Ich habe eine Seite mit zwei Skripts erstellt. Ein Script mit dem man zwei Teile einer Seite wechselweise anzeigen bzw. verstecken kann. Mit dem anderen Script soll eine neue Seite in einem iFrame angezeigt werden.

Beim Script für das wechselweise Anzeigen waren zuerst die Werte auf das Script abgestimmt und es funktionierte alles. Weil ich aber beiden Button den gleichen Wert geben will, habe ich es mit einem id-Wert probiert. Jetzt funktioniert gar nichts mehr.
Wenn ich beim anderen Script die neue Seite in einem anderen Frame aufrufe, funktioniert es hervorragend. Wenn aber der iFrame als Ziel angegeben wird, klappt gar nichts mehr.

Ich habe schon versucht es selbst umzuschreiben, aber ich stoße dabei einfach an meine Grenzen.

Hier das Script

<script language="JavaScript">
function pulldown(form) {
var mypull=form.select.selectedIndex
window.open(form.select.options[mypull].value, target="Auswahl-Fensterlein");
}
</SCRIPT>

<script language="JavaScript">
function showIt(t) {
v = t.value;
if(v == 'vt') {
document.getElementById('opt_vt').style.display = 'block';
document.getElementById('opt_nt').style.display = 'none';
}
else {
document.getElementById('opt_vt').style.display = 'none';
document.getElementById('opt_nt').style.display = 'block';
}
}
</script>

<form name="myform">

<table border="1" cellspacing="0" width="100%" bordercolordark="white" bordercolorlight="black">
<tr>
<td height="1" align="left" valign="top">

<p class="unteroption" id="opt_vt" style="display:none;">
<table cellspacing="0" width="100%" height="1" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="120">
<input type="submit" id="nt" onClick="showIt(this)" value="Niedersachsen" style="font-family:Arial; font-weight:bold; font-size:11pt; color:blue; text-align:left; text-decoration:underline; background-color:rgb(255,255,204); border-width:1px; border-color:rgb(255,255,204); border-style:solid; width:110; cursorointer;">
</td>
<td width="100%">
<select name="select" size="1" onChange="showIt(this); pulldown(this.form)" style="font-family:Arial; font-weight:bold; font-size:11pt;">
<option value="H.htm">H - Region Hannover</option>
<option value="NOM.htm">NOM - Landkreis Northeim</option>
</select>
</td>
</tr>
</table>

<p class="unteroption" id="opt_nt">
<table cellspacing="0" width="100%" height="1" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="110">
<input type="submit" id="vt" onClick="showIt(this)" value="Niedersachsen" style="font-family:Arial; font-weight:bold; font-size:11pt; color:blue; text-align:left; text-decoration:underline; background-color:rgb(255,255,204); border-width:1px; border-color:rgb(255,255,204); border-style:solid; width:110; cursorointer;">
</td>
<td width="100%">
<iframe name="Auswahl-Fensterlein" width="100%" height="20" src="../../Ortsauswahl/weltweit.htm" scrolling="no" marginheight="0" marginwidth="0" frameborder="0">
</iframe>
</td>
</tr>
</table>

</td>
</tr>
</table>

</form>