/**
 * Login page validation functions
 * Copyright (c) 2008 Kynamic, Inc.
 */
// Bridge XMLHTTP to XMLHttpRequest in pre-7.0 Internet Explorers
 
function GetXmlHttpObject()
{
	if (typeof XMLHttpRequest == "undefined") {
  		XMLHttpRequest = function() {
    		try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch(e) {};
    		try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch(e) {};
    		try { return new ActiveXObject("Msxml2.XMLHTTP"); }     catch(e) {};
    		try { return new ActiveXObject("Microsoft.XMLHTTP"); }  catch(e) {};
    		throw new Error("This browser does not support XMLHttpRequest or XMLHTTP.");
  		};
  	//} else {
  	//	alert("Your browser support native AJAX!");
	}
	var xmlHttp = new XMLHttpRequest(); // No conditionals necessary.
	return xmlHttp;
}
