// JavaScript Document
	
	function RequestObject()
	{
		var xmlhttp1 = false;
		
		try {
			//If the Javascript version is greater than 5.
			xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			//If not, then use the older active x object.
			try {
				//If we are using MS.
				xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				//Else we must be using a non-IE browser.
				xmlhttp1 = false;
			}
		}
		
		//If we are using a non-IE browser, create a javascript instance of the object.
		if (!xmlhttp1 && typeof XMLHttpRequest != 'undefined') {
			xmlhttp1 = new XMLHttpRequest();
		}	
		
		return xmlhttp1;
	}
	function clickme(linkID,upOne) 
	{
		
		var xmlhttp1 = RequestObject();
		var parent = "";
		//var obj = document.getElementById(linkID);
		if(upOne==1)
			parent = "../";
		var serverPage = parent + "/facilities/scripts/linkTracker.php?linkName=" + linkID;
		xmlhttp1.open("GET", serverPage);
		xmlhttp1.onreadystatechange = function() {
			return 0;
		}
		xmlhttp1.send(null);
	}
	function DownloadCnt(docID)
	{
		var xmlhttp1 = RequestObject();
		//var obj = document.getElementById(linkID);
		var serverPage = "/facilities/scripts/downloadCnt.php?doc=" + docID;
		xmlhttp1.open("GET", serverPage);
		xmlhttp1.onreadystatechange = function() {
			return 0;
		}
		xmlhttp1.send(null);	
	}
