function GetXmlHttpObject() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
		}
	if (window.ActiveXObject)  {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
		}
	return null;
	}

function chUpdateField(hint, spanID, url) {
	var xmlhttpUpdate;
	xmlhttpUpdate = GetXmlHttpObject();
	if (xmlhttpUpdate == null) {
		alert ("Your browser does not support XMLHTTP.  Some portions of this site may not display correctly.");
		return;
		}
	url = url + "?q=" + hint;
	url = url + "&sid=" + Math.random();
	xmlhttpUpdate.onreadystatechange = function() {
		if (xmlhttpUpdate.readyState == 4) {
			document.getElementById(spanID).innerHTML = xmlhttpUpdate.responseText;
			}
		}
	xmlhttpUpdate.open("GET", url, true);
	xmlhttpUpdate.send(null);
	}



function chFacet(divID, url) {
	var xmlhttpUpdate;
	xmlhttpUpdate = GetXmlHttpObject();
	if (xmlhttpUpdate == null) {
		alert ("Your browser does not support XMLHTTP.  Some portions of this site may not display correctly.");
		return;
		}
	xmlhttpUpdate.onreadystatechange = function() {
		if (xmlhttpUpdate.readyState == 4) {
			document.getElementById(divID).innerHTML = xmlhttpUpdate.responseText;
			}
		}
	url = url + "&sid=" + Math.random();
	xmlhttpUpdate.open("GET", url, true);
	xmlhttpUpdate.send(null);
	
	}
