/*	This page defines a function for creating an Ajax request object.
 *	This page should be included by other pages that 
 *	need to perform an XMLHttpRequest.
 */
 
/*	Function for creating the XMLHttpRequest object.
 *	Function takes no arguments.
 *	Function returns a browser-specific XMLHttpRequest object
 *	or returns the Boolean value false.
 */

function getXMLHttpRequestObject() {

	var ajax = false;

	if (window.XMLHttpRequest) {
	
		ajax = new XMLHttpRequest();
		
	} else if (window.ActiveXObject) { 
	
		try {
			ajax = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				ajax = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) { }
		}		
	} 
	
	return ajax;
} 