ajax = {};

ajax.loadXMLDoc = function(url, callback)
{
	// Only do this if the doc isn't already loading
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp=new XMLHttpRequest();
		eval('xmlhttp.onreadystatechange=' + callback);
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);
	}
	// code for IE
	else if (window.ActiveXObject)
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		if (xmlhttp)
		{
			eval('xmlhttp.onreadystatechange=' + callback);
			xmlhttp.open("GET",url,true);
			xmlhttp.send();
		}
	}
	
}

 ajax.GetXmlHttpObject = function()
    { 
        var objXMLHttp=null
        if (window.XMLHttpRequest)
        {
            objXMLHttp=new XMLHttpRequest()
        }
        else if (window.ActiveXObject)
        {
            objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
        }
        return objXMLHttp
    }
