//function doHttpRequest1() {  // This function does the AJAX request
//var ad = "&"+document.getElementById('ad').value"=";


//http.open("GET", "http://www.skpages.com/classifieds/formrequest.php?aprovince="+document.getElementById('aprovince').value, true);
  
// http.onreadystatechange = getHttpRes;
// http.send(null);
//}



function doHttpRequest3() {  // This function does the AJAX request
//var ad = "&"+document.getElementById('ad').value"=";


http.open("GET", "http://www.reginaclassifieds.net/classifieds/errorcheck.php?youremail="+document.getElementById('youremail').value+"&adid="+document.getElementById('adid').value+"&message="+document.getElementById('message').value+"&emailit="+document.getElementById('emailit').value+"&uad="+document.getElementById('uad').value+"&id="+document.getElementById('id').value, true);  
  http.onreadystatechange = getHttpResym;
  http.send(null);
}


function getHttpResym() {
  if (http.readyState == 4) { 
    resym = http.responseText;  // These following lines get the response and update the page
    document.getElementById('div3').innerHTML = resym;
	  }
}

function getXHTTPym() {
  var xhttpym;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers…
      xhttpym = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttpym = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttpym = new XMLHttpRequest();
	    } catch (e3) {
	      xhttpym = false;
	    }
      }
    }
  return xhttpym; // Return the XMLHTTP object
}

var http = getXHTTPym(); // This executes when the page first loads.

