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 ajax_cnt(url){  var req = getXmlHttp();  var content = document.getElementById('id_div_content');    if(!req)  {    content.innerHTML = '<h3><span class="red">Ошибка создания объекта &laquo;XMLHttpRequest&raquo;</span></h3>';    return;  }       req.onreadystatechange =   function()   {      if (req.readyState == 4)     {       content.innerHTML = req.statusText      if(req.status == 200)       {         content.innerHTML = req.responseText;      }      else      {        content.innerHTML = '<h3><span class="red">Ошибка '+req.status+': невозможно получить данные с сервера</span></h3>';      }    }  }    req.open('GET', url, true);    req.send(null);  //content.innerHTML = '<h3>Обработка запроса, пожалуйста подаждите...</h3>';}
