function cAJAX(aClassName) {
	this.className = aClassName;
	this.ajaxObject = null;
	this.data = "";

	this.url = "";
	this.method = "post";
	this.sendRequestData = null;
	this.callbackFunction = "";
	this.username = null;
	this.password = null;
	this.isRunning = false;

	// Aufruf
	this.call = _cAJAXCall;

	// Abbruch
	this.cancel = _cAJAXCancel;

	// GetData
	this.getData = _cAJAXGetData;

	// GetXMLData
	this.getXMLData = _cAJAXGetXMLData;
}  // end if

function _cAJAXCall() {
	if (this.isRunning) {
		this.cancel();
		this.isRunning = false;
	}  // end if

	if (window.XMLHttpRequest) {
		this.ajaxObject = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		this.ajaxObject = new ActiveXObject("Microsoft.XMLHTTP");
	}  // end if

	if (!this.ajaxObject) return;

	this.ajaxObject.onreadystatechange = new Function("",
	// alert(
		"{ " +
		"	if (" + this.className + ".ajaxObject.readyState == 4) {" +
		"		if (" + this.className + ".ajaxObject.status == 200) {" +
		"			" + this.className + ".data = " + this.className + ".ajaxObject.responseText; " +
		"			if (" + this.className + ".callbackFunction != '') {" +
		"				" + this.className + ".isRunning = false; "+
		"				eval(" + this.className + ".callbackFunction); " +
		"			} " +
		"		} else {" +
		"			" + this.className + ".Data = 'Error: ' + " + this.className + ".ajaxObject.status; " +
		"		} " +
		"	}" +
		"}"
	);

	this.ajaxObject.open(this.method.toUpperCase(), this.url, (this.CallbackFunction != "" ? true : false), this.username, this.password);
	this.ajaxObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); // ; charset=ISO-8859-1");
	this.isRunning = true;
	this.ajaxObject.send(this.sendRequestData);

	// Wenn es eine Callback-Funktion gibt, dann jetzt hier rausspringen
	if (this.callbackFunction != "") return "";

	this.isRunning = false;
	this.data = this.ajaxObject.responseText;
	return this.data;
}

function _cAJAXCancel() {
	if (this.isRunning) this.ajaxObject.abort();
}

function _cAJAXGetData() {
	return this.ajaxObject.responseText;
}

function _cAJAXGetXMLData() {
	return this.ajaxObject.responseXML;
}

