function SendMail() {
	var SMUrl = "anmeldung_mail.php?";
	if (document.getElementsByTagName) {
		var InputVal = document.getElementsByTagName("input");
		for (var CountVal=0; CountVal<InputVal.length; CountVal++)
			SMUrl += InputVal[CountVal].id + "=" + InputVal[CountVal].value + "&"; 
		var SelectVal = document.getElementsByTagName("select");
		for (var CountVal=0; CountVal<SelectVal.length; CountVal++)
			SMUrl += SelectVal[CountVal].id + "=" + SelectVal[CountVal].value + "&"; 
	}
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null) {
	  alert ("Your browser does not support AJAX!");
	  return;
	}

	xmlhttp.open("GET", SMUrl, true);
	xmlhttp.onreadystatechange = SendMailResponse;
	xmlhttp.send(null);
}
function SendMailResponse() {
	if(xmlhttp.readyState == 4) {
		document.getElementById("content_div").innerHTML="Vielen Dank,<br><br>Ihre Anmeldung wurde erfolgreich &uuml;bermittelt!<br><br>Eine Best&auml;tigung wurde an die von Ihnen angegebene E-Mail-Adresse gesendet.<br><br>";
	}
}
function GetXmlHttpObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}
