// ~~~ HTTP Request ~~~ //
// ~~~ Copyrights Micado-IT Solutions Kitzbühel 2010 ~~~ //
// ~~~ Formular mit AJAX versenden ~~~ //

// Objekt erstellen (Browserweiche) //
function http() {
	var http;
		if (window.XMLHttpRequest) { 
			http = new XMLHttpRequest();
		} else if (window.ActiveXObject) {
			http = new ActiveXObject("Microsoft.XMLHTTP");
		}
	return http;
}

// Formular per Post senden //
var xhttpreq;
	function sendhttp(adresse, felder){
		xhttpreq = http();
		xhttpreq.open("POST", adresse, true);
		xhttpreq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xhttpreq.send(felder);
	};


