//Function to get recent property
function getRecentProperty(){
    //return NULL;
    xmlHttpRecent = GetXmlHttpObjectRecent()
    if (xmlHttp == null) {
        //alert ("Error...");
        return;
    }
    var urlRecent = "http://www.gbyers.com/moscow-idaho-real-estate/recentProperty.php";
  //  var urlRecent = "http://gbyers.localhost/moscow_idaho_real_estate/recentProperty.php";	
    
    xmlHttpRecent.onreadystatechange = stateChangedRecent;
    xmlHttpRecent.open("GET", urlRecent, true);
    xmlHttpRecent.send(null);
}

function GetXmlHttpObjectRecent(){
    var xmlHttpRecent = null;
    try {
        // Firefox, Opera 8.0+, Safari
        xmlHttpRecent = new XMLHttpRequest();
    } 
    catch (e) {
        // Internet Explorer
        try {
            xmlHttpRecent = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch (e) {
            xmlHttpRecent = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttpRecent;
}

function stateChangedRecent(){
    if (xmlHttpRecent.readyState == 4) {
        document.getElementById("recentProperty").innerHTML = xmlHttpRecent.responseText;
    }
}
