function LoadAjaxDoc(url)
{
    var req = getXmlHttp()  

    req.open('GET', url, true);

    req.onreadystatechange = function()
	{
        if(req.readyState == 4)
		{
            if(req.status == 200){eval(req.responseText);}
			else{window.alert("Ошибка: не удалось получить данные! ");}
        }
    }

    req.send(null);
}

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;
}