/**
 * Create a new XMLHttpRequest instance.  This is the root object that permite 
 * implement AJAX.
 *
 * @return object|bool
 * @access public
 */

function xmlHttpObject()
{
	var xmlHttp = false;
	
	/**
	 * For browsers as Mozilla, Firefox or Safari the object is XMLHttpRequest
	 */
	
	if (window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		
		/**
		 * Internet Explorer uses Msxml2.XMLHTTP
		 */
		
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e) {
				return false;
			}
		}
	}

	return xmlHttp;
}