//Initialized the object
var ajax = false;

//Create the object
//IE or FF
if (window.XMLHttpRequest)
	{
		// Should work for most browsers - IE 7, FireFox, Safari, Opera
		ajax = new XMLHttpRequest();
	}else if(window.ActiveXObject){

		//create the Msxml2.XMLHTTP
	try
	{
		ajax = new ActiveXObject("Msxml2.XMLHTTP");
	}catch (e1) { //create the older type instead
	try
		{
			ajax = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {}
		}
	}

	//error message if the object won't be created

	if (!ajax) {
	alert('Some page functionality is unavailable.');
	}
