// includers must implement outputResponse(response) and resetForNextAjaxEvent().  See support.cfm for an example.
var req;

function loadXMLDoc(url) {
    if (window.XMLHttpRequest) { // branch for native XMLHttpRequest object
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
    } else if (window.ActiveXObject) { // branch for IE/Windows ActiveX version
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        }
    }
}
function processReqChange() {
	var COMPLETE = 4;
	var OK = 200;
	
    if (req.readyState == COMPLETE) {
        if (req.status == OK) {
			outputResponse(req.responseText);
        } else {
			outputResponse("There was a problem retrieving the data");
        }
		resetForNextAjaxEvent();
    }
}
