var anfrage = null;

try {
	anfrage = new XMLHttpRequest();
}
catch (versuchmicrosoft) {
	try {
		anfrage = new ActiveXObject("Msxm12.XMLHTTP");
	}
	catch (anderesmicrosoft) {
		try {
			anfrage = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (fehlschlag) {
			anfrage = null;
		}
	}
}

if (anfrage == null)
	var enableAjax = false;
else
	var enableAjax = true;