
function getXMLHttp(){
	var xmlhttp=false;
 	try {
 		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 	} catch (e) {
 		try {
 			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 		} catch (E) {
 			xmlhttp = false;
 		}
  	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

//Function to process an XMLHttpRequest.
function processajax (obj, serverPage){
//Get an XMLHttpRequest object for use.
	
	xmlhttp = getXMLHttp();
	xmlhttp.open("GET", serverPage);
    
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		document.getElementById(obj).innerHTML = xmlhttp.responseText;
		
		}
	}
	xmlhttp.send(null);
}
function processajax2 (obj, serverPage){
//Get an XMLHttpRequest object for use.
	
	xmlhttp = getXMLHttp();
	xmlhttp.open("GET", serverPage);
    
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		document.getElementById(obj).innerHTML =document.getElementById(obj).innerHTML+ xmlhttp.responseText;
		
		}
	}
	xmlhttp.send(null);
}


