// JavaScript Document

var valu='';

function checkForm1() {
 var prove = false;

sex="";
if (document.anmeldung.sex[0].checked){sex=document.anmeldung.sex[0].value;}
if (document.anmeldung.sex[1].checked){sex=document.anmeldung.sex[1].value;}
if (sex=="" ){alert( "Bitte geben Sie Ihr Geschlecht an!" );return prove}

if (document.anmeldung.vorname.value == "") {alert ("Bitte geben Sie Ihren Vornamen an !");document.anmeldung.vorname.focus();return prove;}
if (document.anmeldung.name.value == "") {alert ("Bitte geben Sie Ihren Nachnamen an !");document.anmeldung.name.focus();return prove;}
if (document.anmeldung.str.value == "") {alert ("Bitte geben Sie Ihre Straße an !");document.anmeldung.str.focus();return prove}
if (document.anmeldung.plz.value == "") {alert ("Bitte geben Sie Ihre PLZ an !");document.anmeldung.plz.focus();return prove}
if (document.anmeldung.plz.value.length < 4) {alert ("Bitte geben Sie Ihre PLZ an !");document.anmeldung.plz.focus();return prove}
if (document.anmeldung.ort.value == "") {alert ("Bitte geben Sie Ihren Wohnort an !");document.anmeldung.ort.focus();return prove}
if (document.anmeldung.geb.value == "") {alert ("Bitte geben Sie Ihr Geburtsdatum an !");document.anmeldung.geb.focus();return prove}
if (document.anmeldung.geb.value.length != 10) {alert ("Bitte geben Sie Ihr Geburtsdatum an !");document.anmeldung.geb.focus();return prove}

if (document.anmeldung.wb.selectedIndex<1){alert( "Bitte wählen Sie eine Strecke aus!" );document.anmeldung.wb.focus();return prove}

za="";
if (!document.anmeldung.zahlungsart.length>=1){if (document.anmeldung.zahlungsart.checked){za=document.anmeldung.zahlungsart.value;}}
if (document.anmeldung.zahlungsart.length>=1){if (document.anmeldung.zahlungsart[0].checked){za=document.anmeldung.zahlungsart[0].value;}}
if (document.anmeldung.zahlungsart.length>1){if (document.anmeldung.zahlungsart[1].checked){za=document.anmeldung.zahlungsart[1].value;}}
if (document.anmeldung.zahlungsart.length>2){if (document.anmeldung.zahlungsart[2].checked){za=document.anmeldung.zahlungsart[2].value;}}
if (document.anmeldung.zahlungsart.length>3){if (document.anmeldung.zahlungsart[3].checked){za=document.anmeldung.zahlungsart[3].value;}}
if (za=="" ){alert( "Bitte wähle eine Zahlungsart aus!" );return prove}

if (za=="Lastschrift"){
	if( document.anmeldung.inhaber.value=="" ){alert( "Bitte füllen Sie die Bankdaten richtig aus!" );document.anmeldung.inhaber.focus();return prove}
	if( document.anmeldung.kontonr.value=="" ){alert( "Bitte füllen Sie die Bankdaten richtig aus!" );document.anmeldung.kontonr.focus();return prove}
	if( document.anmeldung.bank.value=="" ){alert( "Bitte füllen Sie die Bankdaten richtig aus!" );document.anmeldung.bank.focus();return prove}
	if( document.anmeldung.blz.value=="" ){alert( "Bitte füllen Sie die Bankdaten richtig aus!" );document.anmeldung.blz.focus();return prove}
	if( !document.anmeldung.abbuchen.checked == true ){alert( "Bitte füllen Sie die Bankdaten richtig aus! (Einverständniserklärung)" );return prove}
}



return prove = true;
}

