/* AJAX plain */

var http = createRequestObject();


function getXML(strURL, callback)
{
       //alert("getXML");
        http.open('get',strURL , true);
	   http.onreadystatechange = callback;
	   http.send(null);


}



function createRequestObject(){
	var request_o; //declare the variable to hold the object.
	var browser = navigator.appName; //find the browser name
	if(browser == "Microsoft Internet Explorer")
        { /* Create the object using MSIE's method */
	
	        
                try {
                  request_o = new ActiveXObject("Msxml2.XMLHTTP");
                }
                catch (e)
                 {
                  try
                   {
                    request_o = new ActiveXObject("Microsoft.XMLHTTP");
                  } catch (e2) {
                    request_o = false;
                  }
                }
        
		
		
	}
        else
        {
		/* Create the object using other browser's method */
		request_o = new XMLHttpRequest();
	} 
	return request_o; //return the object
}


