function ajaxGet(url, id) {
//window.alert('Test');
function connect() {
	http.open("GET", url, true);
	http.onreadystatechange = getHttpRes;
	http.send(null);
}

function getHttpRes() {
	if (http.readyState == 4) { 
		res = http.responseText;  
		document.getElementById(id).innerHTML = res;
	}
}

function getXHTTP() {
	var xhttp;
	try {   
	// The following "try" blocks get the XMLHTTP object for various browsers…
		xhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
     	try {
        	xhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (e2) {
 	 // This block handles Mozilla/Firefox browsers...
	try {
	      	xhttp = new XMLHttpRequest();
	} catch (e3) {
	   	xhttp = false;
	}
      	}
    }	
  return xhttp; // Return the XMLHTTP object
}
var http = getXHTTP(); // This executes when the page first loads.
connect();
}

// SILENT OUTPUT VERSION
function ajaxGetS(url) {
//window.alert('Test');
function connect() {
	http.open("GET", url, true);
	http.onreadystatechange = getHttpRes;
	http.send(null);
}

function getHttpRes() {
	if (http.readyState == 4) { 
		res = http.responseText;  
	}
}

function getXHTTP() {
	var xhttp;
	try {   
	// The following "try" blocks get the XMLHTTP object for various browsers…
		xhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
     	try {
        	xhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (e2) {
 	 // This block handles Mozilla/Firefox browsers...
	try {
	      	xhttp = new XMLHttpRequest();
	} catch (e3) {
	   	xhttp = false;
	}
      	}
    }	
  return xhttp; // Return the XMLHTTP object
}
var http = getXHTTP(); // This executes when the page first loads.
connect();
}