/*--------------------------------------------------------*/
/*set data returned from a url to a div element*/
  function handleHttpResponse(){ 
    if(http.readyState == 4){ 
      //Split the comma delimited response into an array 
      //results = http.responseText.split(","); 
      document.getElementById('companies').innerHTML = http.responseText; 
    } 
  }

/*--------------------------------------------------------*/
  function handleHttpResponse_1(){ 
    if(http.readyState == 4){ 
      //Split the comma delimited response into an array 
      //results = http.responseText.split(","); 
      document.getElementById(place_1).innerHTML = http.responseText; 
    } 
  }

/*--------------------------------------------------------*/
/*get content for a specific url*/
  function getData(url){
    http.open("GET", url, true); 
    http.onreadystatechange = handleHttpResponse; 
    http.send(null);
  }

/*--------------------------------------------------------*/
/*get content for a specific url*/
  function getData_1(url,place){
    place_1 = place;
    http.open("GET", url, true); 
    http.onreadystatechange = handleHttpResponse_1; 
    http.send(null);
  }

/*get content for a specific url*/
  function getData_2(url,place){
    place_1 = place;
    http.open("GET", url, true); 
    http.onreadystatechange = handleHttpResponse_1; 
    http.send(null);
  }

/*--------------------------------------------------------*/
/*instantiate a XMLHttpRequest object in order to implement AJAX concept*/
  function getHTTPObject(){
/*    var xmlhttp;
    if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
      try{
        xmlhttp = new XMLHttpRequest();
      }catch (e){
        xmlhttp = false;
      }
    }
    
    return xmlhttp;
*/

    var http_request = false;
    if(window.XMLHttpRequest){ // Mozilla, Safari,...
      http_request = new XMLHttpRequest();
    }else if(window.ActiveXObject){ // IE
      try{
        http_request = new ActiveXObject("Msxml2.XMLHTTP");
      }catch(e){
        try{
          http_request = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(e){}
      }
    }

    return http_request;
  }

  var http = getHTTPObject(); // We create the HTTP Object

