function chkFormular(){
// name    
     if(document.Formular.von.value == "Vorname Nachname"){
        alert(" Füllen Sie bitte das Feld \n--------------------------------------------\n Ihr Vorname und Nachname \n--------------------------------------------\n aus!"); 
        //window.open("","fensterln","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width=600,height=300").location.href="meldung.php?id=VornameNachname" 
        document.Formular.von.focus();
        return false;
     }
     if(document.Formular.von.value.indexOf(' ') == -1){
       alert("Vorname und Nachname bitte im Format \n--------------------------------------------\n Vorname Nachname \n--------------------------------------------\n eingeben!");
       document.Formular.von.focus();
       return false;
     }
// geburtsdatum
    if(document.Formular.gdatum.value == "Bitte geben Sie Ihr Geburtsdatum an"){
        alert("Füllen Sie bitte das Feld \n--------------------------------------------\n Ihr Geburtsdatum \n--------------------------------------------\n aus!");
        document.Formular.gdatum.focus();
        return false;
     }
    if(document.Formular.gdatum.value.indexOf('\.') == -1){
       alert("Das Geburtsdatum bitte im Format: \n--------------------------------------------\n DD.MM.YYYY \n--------------------------------------------\n eingeben!");
       document.Formular.gdatum.focus();
       return false;
     }
    if(document.Formular.gdatum.value.length != 10){
       alert("Das Geburtsdatum bitte im Format: \n--------------------------------------------\n DD.MM.YYYY \n--------------------------------------------\n eingeben!");
       document.Formular.gdatum.focus();
       return false;
     }         
// email         
     if(document.Formular.email.value == "Bitte geben Sie Ihre eMail Adresse an"){
       alert("Füllen Sie bitte das Feld \n--------------------------------------------\n Ihre eMail Adresse \n--------------------------------------------\n aus!");
       document.Formular.email.focus();
       return false;
       }  
     if(document.Formular.email.value.indexOf('@') == -1){
       alert("Bitte eine gültige eMail-Adresse eingeben!");
       document.Formular.email.focus();
       return false;
     }
     if(document.Formular.email.value.indexOf('.de') == -1)
     if(document.Formular.email.value.indexOf('.com') == -1)
     if(document.Formular.email.value.indexOf('.net') == -1)
     if(document.Formular.email.value.indexOf('.org') == -1)
     if(document.Formular.email.value.indexOf('.info') == -1)
     if(document.Formular.email.value.indexOf('.biz') == -1)
     if(document.Formular.email.value.indexOf('.at') == -1)
     if(document.Formular.email.value.indexOf('.ch') == -1)
     if(document.Formular.email.value.indexOf('.name') == -1)
     if(document.Formular.email.value.indexOf('.eu') == -1)
     if(document.Formular.email.value.indexOf('.be') == -1)
     if(document.Formular.email.value.indexOf('.cz') == -1)
     if(document.Formular.email.value.indexOf('.dk') == -1)
     if(document.Formular.email.value.indexOf('.fr') == -1)
     if(document.Formular.email.value.indexOf('.it') == -1)
     if(document.Formular.email.value.indexOf('.li') == -1)
     if(document.Formular.email.value.indexOf('.lu') == -1)
     if(document.Formular.email.value.indexOf('.md') == -1)
     if(document.Formular.email.value.indexOf('.nl') == -1)
     if(document.Formular.email.value.indexOf('.pl') == -1)
     if(document.Formular.email.value.indexOf('.ru') == -1)
     if(document.Formular.email.value.indexOf('.se') == -1)
     if(document.Formular.email.value.indexOf('.sk') == -1)
     if(document.Formular.email.value.indexOf('.uk') == -1)
     if(document.Formular.email.value.indexOf('.gb') == -1){
       alert("Bitte eine gültige E-Mail-Adresse eingeben!");
       document.Formular.email.focus();
       return false;
     }
// user          
     if(document.Formular.user.value == "Bitte geben Sie ein Benutzername an"){
        alert("Füllen Sie bitte das Feld \n--------------------------------------------\n Benutzername \n--------------------------------------------\n aus!");
        document.Formular.user.focus();
        return false;
     }
     if(document.Formular.user.value.length < 6){
        alert("Der Benutzername muss mindestrns 6 Zeichen lang sein");
        document.Formular.user.focus();
        return false;
     }
// pass          
     if(document.Formular.pass.value == "123456"){
        alert("Füllen Sie bitte das Feld \n--------------------------------------------\n Passwort \n--------------------------------------------\n aus!");
        document.Formular.pass.focus();
        return false;
     } 
     if(document.Formular.pass.value.length < 6){
        alert("Das Passwort muss mindestrns 6 Zeichen lang sein");
        document.Formular.pass.focus();
        return false;
     } 
// pass2          
     if(document.Formular.pass2.value == "123456"){
        alert("Füllen Sie bitte das Feld \n--------------------------------------------\n Passwort Wiederholung \n--------------------------------------------\n aus!");
        document.Formular.pass2.focus();
        return false;
     } 
     
     if(document.Formular.pass2.value.length < 6){
        alert("Das Passwort muss mindestrns 6 Zeichen lang sein");
        document.Formular.pass2.focus();
        return false;
     }
// agb
     if(document.Formular.agb.checked == false){
         alert("\n--------------------------------------------\n Sie müssen die AGB akzeptieren! \n--------------------------------------------\n");
         document.Formular.agb.focus();
         return false;
     } 
    return (true);
}

// Tasteneingaben Zählen
function CheckLen(Target, Feld) { 
    StrLen = Target.value.length;
    suche =  Target.value.search(/ /);
    if (suche != -1) { Target.value = Target.value.replace(/ /g, ""); StrLen = StrLen-1; }
    if (StrLen > 9 ) Target.value = Target.value.substring(0,9);
    if (StrLen > 0 && StrLen < 6 ) CharsLeft = "..noch " + (6 - StrLen) + " Zeichen"; 
    else CharsLeft = ""; 
    if (document.getElementById) document.getElementById(Feld).innerHTML = CharsLeft;
    else Feld.innerHTML = CharsLeft; 
}

// Tasteneingaben Zählen
function l_Sz_gd(STRING) { 
     s_arr = new Array(
        /[\/:,"°\^€@§ß?µ\+#&%\(\)_=|]/g,
        /[a-z- äöüß]/gi,
        /^\./g 
        //, /\.\.$/g 
     ); 
 
     for (var i = 0; i < s_arr.length; i++) {
        STRING.value = STRING.value.replace( /\.\./g, ".");
        STRING.value = STRING.value.replace( s_arr[i], "");
        
     }
}