//CERATE A BOOLEAN VALUE TO CHECK VALID INTERNET EXPLORER INSTANCE.
var xmlhttp = false;

//CHECK IF WE ARE USING IE
try{
	//IF JAVASCRIPT VERSION > 5
	xmlhttp = new ActiveXObject("Msxml.XMLHTTP");
}catch (e){
	//IF NOT USE OLDER ACTIVE X OBJECT
	try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}catch (e){
		//ELSE WE ARE USING A NON IE BROWSER
		xmlhttp = false;
	}
}

//IF WE ARE USING A NON IE BROWSER CREATE A JS INSTANCE OF THE OBJECT
if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
	xmlhttp = new XMLHttpRequest();
}
