/*
FUNCTION: callPage											
															
PARAMETERS:													
	pageToLoad (requried)									
		- string: the page to be loaded						
	pageLocation (required)									
		- string: the location of the page to be loaded		
	displayIn (required)									
		- string: the name of the div ID					
	additionalProcessing									
		- string: name of the area for additional processing
*/
function callPage(pageToLoad, pageLocation, displayIn, additionalProcessing) {
	divName		= displayIn;
	areaName	= additionalProcessing;
	
	if (window.ActiveXObject) {
		xhttp	= new ActiveXObject('Microsoft.XMLHTTP');
	} else if (window.XMLHttpRequest) {
		xhttp	= new XMLHttpRequest();
	}
	
	var url		= 'http://' + serverName + '/' + pageLocation + '/' + pageToLoad;
	
	if (xhttp) {
		xhttp.open('GET', url, true);
		xhttp.onreadystatechange = useHttpResponse;
		xhttp.send(null);
	} else {
		alert('Your request couldn\'t be completed.');
	}
};
/*
FUNCTION: useHttpResponse	
							
PARAMETERS: none			
*/
function useHttpResponse() {
	if (xhttp.readyState == 4) {
		document.getElementById(divName).innerHTML = xhttp.responseText;
	}
}