var request; //this will be our XMLHttpRequest object

try{
	request = new XMLHttpRequest();
}catch(e){
	// this means that we are dealing with som version of IE
	try{
	request = new ActiveXObject("MSXML2.XMLHTTP");
}catch(e2){
		//it must be an older version of IE	
		try{
	request - new ActiceXObject("Microsoft.XMLHttp");
}catch(e3){
	request = null;
}
	}
		}
/**
if(request == null){
	alert("Really old browser you got there, BUD")
}else{
	alert("The XMLHttpRequest object has been created you can do AJAX stuff")
}
**/
