function getStates(id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getStates=true";
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}


function getCities(state, id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getCities=true&state="+state;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getPropertyTypes(city, id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\" />';

    var url = "/includes/ajax.php";
    var params = "getPropertyTypes=true&city="+city;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}




function getStates_oh(id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getStates_oh=true";
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getCities_oh(state, id, selected_city) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getCities_oh=true&state="+state+"&selected_city="+selected_city;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}








function getStates_alerts(id, selected_state) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getStates_alerts=true&selected_state="+selected_state;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getCities_alerts(state, id, selected_city) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getCities_alerts=true&state="+state+"&selected_city="+selected_city;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getPropertyTypes_alerts(city, id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\" />';

    var url = "/includes/ajax.php";
    var params = "getPropertyTypes_alerts=true&city="+city;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getProCategories(id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getProCategories=true";
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getProLanguages(category, id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getProLanguages=true&category="+category;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}



function getProAreas(category, id) {
    var http = false;       if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }       else { http = new XMLHttpRequest(); }

    document.getElementById(id).innerHTML = '<img src = \"/images/layout/loading.gif\" alt = \"loading\"  />';

    var url = "/includes/ajax.php";
    var params = "getProAreas=true&category="+category;
    http.open("POST", url, true);
	//Send the proper header infomation along with the reque
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");         http.setRequestHeader("Content-length", params.length);         http.setRequestHeader("Connection", "close");

    http.onreadystatechange=function() {
      if(http.readyState == 4) {
          document.getElementById(id).innerHTML = http.responseText;
      }
    }
    http.send(params);
}
