// code to create and make AJAX request
function getFileCalendar(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=xmlhttpResultsCalendar;
        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 xmlhttpResultsCalendar() 
{
	if (xmlhttp.readyState==4) { 
		if (xmlhttp.status==200) {
			// we use a delay only for this example
			setTimeout('loadResultsCalendar()',500);
		}
	}
}
		
/* - - - - - - - - - - - - - - - - - - - - */

// 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()',500);
		}
	}
}

/* - - - - - - - - - - - - - - - - - - - - */

// code to create and make AJAX request
function ClearSessionListagens(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_ClearSessionListagens;
		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_ClearSessionListagens() {
	if (xmlhttp.readyState==4) { 
		if (xmlhttp.status==200) {
			// we use a delay only for this example
			setTimeout('loadResults_Sessions()',500);
		}
	}
}

