function lookup ( host, destination_id, url, title,cc){   //if (document.getElementById(source_id).disabled == true) return 0;    // Удаляем первый элемент списка моделей  //clear_first(source_id);    // Получаем объект XMLHTTPRequest  this.http = get_http();  this.working = false;  // Запрос  if (!this.working && this.http)  {    var http = this.http;	    //url = url + document.getElementById(source_id).value;	// Создаём запрос	    this.http.open("GET", url, true);	    // Прикрепляем к запросу функцию-обработчик событий   	this.http.onreadystatechange = function()    {		    // 4 - данные готовы для обработки      if (http.readyState == 4)      {        //clear_first(destination_id);		        fill(destination_id, http.responseText, title);                this.working = false;        //document.getElementById('submit').style.display = 'block';      }      else      {        // данные в процессе получения,         // можно повеселить пользователя        // сообщениями         // ЖДИТЕ ОТВЕТА		        document.getElementById(destination_id).style.display='block';        document.getElementById(destination_id).innerHTML="<div style='text-align:center;width:100%;padding:10px;color:#E08D35'>Данные обрабатываются</div>";              }    }    this.working = true;    this.http.send(null);  }  if(!this.http)  {	    alert('Ошибка при создании XMLHTTP объекта!');  }}function get_http(){    var xmlhttp;	    if (window.XMLHttpRequest)      xmlhttp = new XMLHttpRequest();	else      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");    return xmlhttp;}function fill (select_id, data, title){   	// доступ к диву адресату сообщения		document.getElementById(select_id).innerHTML=data;	    //получаем данные	//var arr = data.split('~');	//select.innerHTML=data;		      	}
