funzt alles bis auf betreff !! warum ???
hier das script komplett.
<script type="text/javascript">
<!--
function checkform()
{
var zz;
if(document.form2.name.value=="")
{
check_name.innerHTML = " <img src=images/x.gif>";
zz="1";
}
if(document.form2.name.value!="")
{
check_name.innerHTML = "";
}
if(document.form2.email.value=="")
{
check_email.innerHTML = " <img src=images/x.gif>";
zz="1";
}
if(document.form2.email.value!="")
{
check_email.innerHTML = "";
}
if(document.form2.betreff.selectedIndex.value == "1")
{
//check_betreff.innerHTML = " <img src=images/x.gif>";
alert("jjj");
zz="1";
}
if(document.form2.betreff.selectedIndex.value!="1")
{
check_betreff.innerHTML = "";
}
if(document.form2.text.value=="")
{
check_text.innerHTML = " <img src=images/x.gif>";
zz="1";
}
if(document.form2.text.value!="")
{
check_text.innerHTML = "";
}
if(zz=="1")
{
return false;
}
}
//-->
</script>
<body topmargin="0">
<form name="form2" method="post" action="<? echo $PHP_SELF ?>" onSubmit="return checkform()" >
<table><tr><td class="small7_sw">
<img src="images/contact.gif"><br><br>
<span class="formw">n:ame</span><input name="name" type="text" class="form_gr" value="<? echo $name ?>" size="32"><span id="check_name" ></span><br>
<span class="formw">e:mail</span><input name="email" type="text" class="form_gr" value="<? echo $email ?>" size="32"><span id="check_email" ></span><br><br>
<span class="formw">b:etreff</span><div style="position:absolute; margin-right:7px; width:172px; height:18px; border:1px solid #c0c0c0;
background-color:#FFFFFF; "><div style="position: absolute;left:0px;top:-1px;width:170px;height:17px;clip:rect(2,173,15,2);">
<select name="betreff" class="form_gr" style='width:170px' onchange="alert('Wert ist vom Typ: ' + (betreff.options.selectedIndex).value)">
<option value="1">deine auswahl</option>
<option value="2" <? if($betreff == "was allgemeines") echo 'selected'; ?> >was allgemeines</option>
<option <? if($betreff == "beschwerde") echo 'selected'; ?> >beschwerde</option>
<option <? if($betreff == "kompliement") echo 'selected'; ?> >kompliement</option>
</select>
</div>
</div>
<p></p><span id="check_betreff" ></span>
<span class="formw">deine nachricht:</span>
<br><textarea name="text" cols="50" rows="7" class="form_gr" ><? echo $text ?></textarea><span id="check_text" ></span><br>
<input name="abschicken" type="submit" class="form_gr" value="Abschicken" style="color: #990000; width:159px">
<input name="Submit2" type="reset" class="form_gr" value="Zurücksetzen">
<td>
</tr>
</table>
</form>
verzweifle gerade ....!!!!!!!!!