/* The variable http will hold our new XMLHttpRequest object. */
var http = createRequestObject();     


/* The following function creates an XMLHttpRequest object... */
function createRequestObject()
{
    if(typeof ActiveXObject!="undefined")
    {
      
      try
      {
        return new ActiveXObject("Msxml2.XMLHTTP");
      }
      catch(a)
      {
          try
          {
        return new ActiveXObject("Microsoft.XMLHTTP");
          }
          catch(a){}
      }
    }
    if(typeof XMLHttpRequest!="undefined")
    {
      
      request_o = new XMLHttpRequest();
      //request_o.overrideMimeType('text/xml');
      return request_o;
    }
}

function get_property(){

  http.open('get', 'home_property.php');  

  /* Define a function to call once a response has been received. This will be our
    handleProductCategories function that we define below. */  
  
  http.onreadystatechange = getStatus;
  
  /* Send the data. We use something other than null when we are sending using the POST
    method. */
  http.send(null);
}

function getStatus(){
 
  if(http.readyState == 4){ //Finished loading the response
    /* We have got the response from the server-side script,
      let's see just what it was. using the responseText property of 
      the XMLHttpRequest object. */  
    
    var response = http.responseText;
    document.getElementById("idProperty").innerHTML = response;

  return;
  }

}

