function QuickLookUp(keyword) {
	if (keyword.length > 2) {
		AJAXLoad('quicklu','search_results.php?lookup=quick&by=keyword&keyword='+keyword+'&field='+document.frmKeyword.quicklufield.value);
	}
	else {
		AJAXLoad('quicklu','search_results.php?lookup=quick&by=keyword');
	}
}


function AJAXLoad(elemID, strURL) {
	var x = false;
	var element = document.getElementById(elemID);

	try {
		// Internet Explorer 7.
		x = new ActiveXObject("Msxml2.XMLHTTP");
		method = "POST";
	} catch (e) {
		try {
			// Internet Explorer.
			x = new ActiveXObject("Microsoft.XMLHTTP");
			method = "POST";
		} catch (oc) {
			try {
				// Mozilla, Safari, etc.
				x = new XMLHttpRequest();
				method = "GET";
			} catch (oc2) {
				alert("Could not create connection object.");
			}
		}
	}

	if (x) {
		x.onreadystatechange = function() {
			if (x.readyState == 4 && x.status == 200) {
				element.innerHTML = x.responseText;
			}
		}
		x.open(method, strURL, true);
		x.send(null);
	}
}

// experimental :-\
function AJAXRun(strURL) {
	var x = false;

	try {
		// Internet Explorer 7.
		x = new ActiveXObject("Msxml2.XMLHTTP");
		method = "POST";
	} catch (e) {
		try {
			// Internet Explorer.
			x = new ActiveXObject("Microsoft.XMLHTTP");
			method = "POST";
		} catch (oc) {
			try {
				// Mozilla, Safari, etc.
				x = new XMLHttpRequest();
				method = "GET";
			} catch (oc2) {
				alert("Could not create connection object.");
			}
		}
	}

	if (x) {
		x.onreadystatechange = function() {
			if (x.readyState == 4 && x.status == 200) {
				document.write(x.responseText);
			}
		}
		x.open(method, strURL, true);
		x.send(null);
	}
}