//////////////////////////////////////////////////////////////////
// Christopher McCulloh						//
// 8/9/06							//
// Performance Strategies, Inc.					//
//								//
// This creates request objects for AJAX enabled pages		//
//////////////////////////////////////////////////////////////////

var request = null; //prepare the request object variable
createRequest(); //This calls the create request function

function createRequest() { //function to create request

	try {
		request = new XMLHttpRequest(); //creates new request object
	} catch (trymicrosoft) { //If it fails, it must be Microsoft, so try that...
		try{
			request = new ActiveXObject("Msxm12.XMLHTTP"); //try one microsoft...
			//alert("request created");
		} catch (othermicrosoft) {
			try {
				request = new ActiveXObject("Microsoft.XMLHTTP"); //try the other
				//alert("request created");
			} catch (failed) {
				request = null; //nothing worked, you must be using lynx or something...
			}
		}
	}

	if (request == null) {
		alert("Error creating request object!"); //tell them they are sol
	}
}//end function
