function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function control(){
var commando, plzl="0123456789",datl="0123456789.",datl2="0123456789., ",telfax="0123456789-/+ ",c , d, L, E, indexZ;
var ns="Netscape";
if((navigator.appName==ns) && (navigator.appVersion.substring(0,1) >= "4")){
commando=document.form1;
}
else
commando=document.form1;

/* Anrede Check */

if(commando.anrede[0].checked==false && commando.anrede[1].checked==false){
	alert("Bitte Anrede auswählen");
	return false;
}

/* Name Check */

if(commando.name.value == ""){
alert("Bitte geben Sie Ihren Zunamen an !");
commando.name.focus();
return false;
}

/* Vorname Check */

if(commando.vorname.value == ""){
alert("Bitte geben Sie Ihren Vornamen an !");
commando.vorname.focus();
return false;
}

/* Straße Check */

if(commando.str.value == ""){
alert("Bitte geben Sie Straße und Hausnummer mit an !");
commando.str.focus();
return false;
}

/* PLZ Check */

if(commando.plz.value == ""){
alert("Bitte geben Sie Ihre Postleitzahl mit an !");
commando.plz.focus();
return false;
}
E=commando.plz.value;
L=E.length;
for(c=0;c<L;c++){
d=E.charAt(c);
if(plzl.indexOf (d) == -1){
alert("Bitte verwenden Sie für die Postleitzahl nur Zahlen !");
commando.plz.focus();
commando.plz.select();
return false;
}
}

/* Ort Check */

if(commando.ort.value == ""){
alert("Bitte geben Sie Ihren Wohnort an !");
commando.ort.focus();
return false;
}


/* Mail Check */

if(commando.mail.value == ""){
var dialogbox;
dialogbox=confirm("Bitte geben Sie Ihre E-Mail Adresse an !\n\n\(Sollten Sie keine E-Mail Adresse besitzen,\nso klicken Sie bitte auf \"Abbrechen\".\)");
if(dialogbox==true){
commando.mail.focus();
commando.mail.select();
}
if(dialogbox==false){
commando.mail.value="Keine E-Mail";
commando.mail.focus();
}
return false;
}


/* Nachricht Check */

if(commando.nachricht.value == ""){
alert("Sie wollten uns doch etwas mitteilen!?");
commando.nachricht.focus();
commando.nachricht.select();
return false;
}
}