function createAjax() {
	var requestAjax = false;
	try {
		requestAjax = new XMLHttpRequest();
	}
	catch (trymicrosoft) {
		try {
			requestAjax = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (othermicrosoft) {
			try {
				requestAjax = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (failed) {
				requestAjax = false;
			}  
		}
	}
	return requestAjax;

	if (!requestAjax) {
		alert("Работа системы ограничена!\nНе удалось создать AJAX объект");
	}
}