var xmlQL; //XMLHttpRequest Object
function requestQL(event,id){
	if(xmlQL == null){
		try{
			xmlQL	= new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e){
			try{
				xmlQL = new XMLHttpRequest();
			}catch(e){
				alert("Browser doesn't support XML Requests" + e);
				return; // your browser doesn't support this feature
			}
		}
	}
	xmlQL.open('get', 'http://law.slu.edu/Scripts/QL.html', true);
	//xml.setRequestHeader('CACHE-CONTROL','NO-CACHE');
	xmlQL.onreadystatechange = updateQL;
	xmlQL.send(null);
}
//event handler for the AJAX request simply fill the div with the response of the HttpXML request
function updateQL(){
	/* Make sure that the transaction has finished. The XMLHttpRequest object 
		has a property called readyState with several states:
		0: Uninitialized
		1: Loading
		2: Loaded
		3: Interactive
		4: Finished */
	if(xmlQL.readyState == 4){ //Finished loading the response
		/* We have got the response from the server-side script,
			let's see just what it was. using the responseText property of 
			the XMLHttpRequest object. */
		var response = xmlQL.responseText;
		/* Now we update the contentes of the span tag that holds the quickclicks.   */
		document.getElementById('quickclicksspan').innerHTML = response;
		//alert(response);
		//alert(document.getElementById('quickclicksspan').innerHTML);
			
	}
}