//Fn Gets the browser specific XmlHttpRequest Object 
// adapted from SPryData.js version 1.6.1
// should work with all IE 6+ versions
function createXMLHttpRequest()
{
	var msversions = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0"];
	var req = null;
	try
	{
		// Try to use the ActiveX version of XMLHttpRequest. This will
		// allow developers to load file URLs in IE7 when running in the
		// local zone.
		if (window.ActiveXObject)
		{
			while (!req && msversions.length)
			{
				try { req = new ActiveXObject(msversions[0]); } catch (e) { req = null; }
				if (!req)
					msversions.splice(0, 1);
			}
		}
		// We're either running in a non-IE browser, or we failed to
		// create the ActiveX version of the XMLHttpRequest object.
		// Try to use the native version of XMLHttpRequest if it exists.
		if (!req && window.XMLHttpRequest)
			req = new XMLHttpRequest();
	}
	catch (e) { req = null;	}
	//if (!req)
	//	Spry.Debug.reportError("Failed to create an XMLHttpRequest object!" );
	return req;
}
/*
//Older version of fn to get XmlHttpRequest object
//Gets the browser specific XmlHttpRequest Object 
function getXmlHttpRequestObject() {
 if (window.XMLHttpRequest) {
    return new XMLHttpRequest(); //Mozilla, Safari ...
 } else if (window.ActiveXObject) {
    return new ActiveXObject("Microsoft.XMLHTTP"); //IE
 } else {
    //Display our error message
    //alert("Your browser doesn't support the XmlHttpRequest object.");
	return false;
 }
}
*/
