
/* FormControler: Kontakt-Formular */
function ContactFormController() {
	msg = "";
	if(document.forms['ccontactfrm'].xsubject.value=="") {
		msg += "Betreff\n";
	}
	if(document.forms['ccontactfrm'].xnachricht.value=="") {
		msg += "Ihre Nachricht\n";
	}
	if(document.forms['ccontactfrm'].xanrede.value=="") {
		msg += "Anrede\n";
	}
	if(document.forms['ccontactfrm'].xname.value=="") {
		msg += "Name, Vorname\n";
	}
	if(document.forms['ccontactfrm'].xemail.value=="") {
		msg += "E-Mail\n";
	}
	if(document.forms['ccontactfrm'].captcha.value=="") {
		msg += "Sicherheitscode\n";
	}
	if(msg != "") {
		alert("Bitte korrigieren Sie die folgenden Angaben:    \n\n" + msg);
	}
	else {
		document.forms['ccontactfrm'].submit();
	}
}

/* FormControler: Kontakt-Formular EN */
function ContactFormControllerEN() {
	msg = "";
	if(document.forms['ccontactfrm'].xsubject.value=="") {
		msg += "Subject\n";
	}
	if(document.forms['ccontactfrm'].xnachricht.value=="") {
		msg += "Your message\n";
	}
	if(document.forms['ccontactfrm'].xanrede.value=="") {
		msg += "Title\n";
	}
	if(document.forms['ccontactfrm'].xname.value=="") {
		msg += "Surname, first name\n";
	}
	if(document.forms['ccontactfrm'].xemail.value=="") {
		msg += "E-Mail\n";
	}
	if(document.forms['ccontactfrm'].captcha.value=="") {
		msg += "Securitycode\n";
	}
	if(msg != "") {
		alert("Please correct the following fields:    \n\n" + msg);
	}
	else {
		document.forms['ccontactfrm'].submit();
	}
}

