var ajax = getXmlHttp();

// Создание объекта
function getXmlHttp(){
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function get_ajax(request, url, result_obj) {
	if (result_obj.innerHTML=='') result_obj.style.display = 'block';
	result_obj.innerHTML = '<img align=absmiddle src="/images/ajax-loader.gif"> загружается информация о специалисте...';
	ajax.open('GET', url, true);
	ajax.onreadystatechange = function() {
		if (ajax.readyState == 4) {
			if(ajax.status == 200) {
				result_obj.innerHTML = ajax.responseText;
				if (ajax.responseText!='') result_obj.style.display = 'block';
				else result_obj.style.display = 'none';
			}
		}
	};
	ajax.send(null);
}