
function Refresh() {  // This function does the AJAX request
//var ad = "&"+document.getElementById('ad').value"=";


http.open("GET", "http://www.reginaclassifieds.net/refreshhistory.php");  
  http.onreadystatechange = getHttpResyR;
  http.send(null);
  
}


function getHttpResyR() {
  if (http.readyState == 4) { 
    resyR = http.responseText;  // These following lines get the response and update the page
    document.getElementById('one1').innerHTML = resyR;
	
	  }
	  
}

function getXHTTPyR() {
  var xhttpyR;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers…
      xhttpyR = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttpyR = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttpyR = new XMLHttpRequest();
	    } catch (e3) {
	      xhttpyR = false;
	    }
      }
    }
  return xhttpyR; // Return the XMLHTTP object
 
}

var http = getXHTTPyR(); // This executes when the page first loads.
//window.setTimeout(Refresh,8300);
