
/* - - - - - - - - - - - - - - - - - - - - */

	// code to create and make AJAX request
    function getFile(pURL) 
	{
		if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc 
			xmlhttp=new XMLHttpRequest();
		} else if (window.ActiveXObject) { //IE 
			xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');
		}
		
		// if we have created the xmlhttp object we can send the request
		if (typeof(xmlhttp)=='object') {
			xmlhttp.onreadystatechange=xmlhttpResults;
			xmlhttp.open('GET', pURL, true);
			xmlhttp.send(null);
		// otherwise display an error message
		} else {
			alert('Your browser is not remote scripting enabled. You can not run this example.');
		}
	}
	
	// function to handle asynchronous call
	function xmlhttpResults() 
	{
		if (xmlhttp.readyState==4) { 
			if (xmlhttp.status==200) {
				// we use a delay only for this example
				setTimeout('loadResults()',0);
			}
		}
	}

/* - - - - - - - - - - - - - - - - - - - - */

	// code to create and make AJAX request
	function getFile2(pURL) 
	{
		if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc 
			xmlhttp2=new XMLHttpRequest();
		} else if (window.ActiveXObject) { //IE 
			xmlhttp2=new ActiveXObject('Microsoft.XMLHTTP');
		}
		// if we have created the xmlhttp object we can send the request
		if (typeof(xmlhttp2)=='object') {
			xmlhttp2.onreadystatechange=xmlhttpResults2;
			xmlhttp2.open('GET', pURL, true);
			xmlhttp2.send(null);
		// otherwise display an error message
		} else {
			alert('Your browser is not remote scripting enabled. You can not run this example.');
		}
	}
	
	// function to handle asynchronous call
	function xmlhttpResults2() 
	{
		if (xmlhttp2.readyState==4) { 
			if (xmlhttp2.status==200) {
				// we use a delay only for this example
				setTimeout('loadResults2()',0);
			}
		}
	}	

/* - - - - - - - - - - - - - - - - - - - - */

