function checkForm(){
		var mail_reg_str=/^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+)(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,4})$/;
		var telefon_reg_str=/^[0-9)-]+(\W[0-9-]+)*$/;
		var datum_reg_str=/\d{2}\.\d{2}\.\d{4}/;
		var zeit_reg_str=/\d{2}\W\d{2}/;
		
		if(document.mailForm.nachricht.value==""){

			alert("   Du hast noch keine Nachricht geschrieben!        \n          \n");
			document.mailForm.nachricht.focus();
			document.mailForm.nachricht.style.backgroundColor="#F9F99F";
			return false;
		}
		
		if(document.mailForm.absender.value==""){
			alert("   Um die Nachricht versenden zu können,        \n   musst du deine E-Mail-Adresse eintragen!       \n");
			document.mailForm.absender.focus();
			document.mailForm.absender.style.backgroundColor="#F9F99F";
			return false;
		}
		if(document.mailForm.absender.value!=""){
			if(!mail_reg_str.exec(document.mailForm.absender.value)){
				alert("   Überprüfe bitte die E-Mail-Adresse.   \n   Sie scheint kein gültiges Format zu haben.        \n");
				document.mailForm.absender.focus();
				document.mailForm.absender.style.backgroundColor="#F9F99F";
				return false;
			}
		}
		
} 
function resetForm(){
	
	document.mailForm.nachricht.style.backgroundColor="#FFFFFF";
	document.mailForm.absender.style.backgroundColor="#FFFFFF";
}
