function loadXMLDoc(url) { // This funciton is modified from: developer.apple.com.
	var xmlReq = false;
	if(window.XMLHttpRequest) { // branch for native XMLHttpRequest object
		try {
			xmlReq = new XMLHttpRequest();
		} catch(e) {
			xmlReq = false;
		}
	} else if(window.ActiveXObject) { // branch for IE/Windows ActiveX version
		try {
			xmlReq = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				xmlReq = false;
			}
		}
	}
	if(xmlReq) {
		//xmlReq.onreadystatechange = processReqChange();
		xmlReq.open("GET", url, true);
		xmlReq.send("");
	}
	return xmlReq;
}

function nodeFromAttribute(theNodeList, theAttribute, theValue) {
	var resultNode = null;
	for (n = 0; theNodeList.item(n) != null; n++) {
		if (theNodeList.item(n) != '[object Text]' && theNodeList.item(n).attributes) {
			if (theNodeList.item(n).getAttribute(theAttribute) == theValue) {
				return theNodeList.item(n);
			}
		}
	}
	return null;
}

function testXML() {
	if (window.XMLHttpRequest || window.ActiveXObject("Microsoft.XMLHTTP")) {
		return true;
	} else {
		return false;
	}
}