function showLoading() {

	//gets top and left positions based on user's resolution so div is centered.
	var width;
	var height;
	
	height = 50; 
	if (window.innerWidth) {
		 //if browser supports window.innerWidth
		width = (window.innerWidth/2) - (160); //half the screen width minus half the new window width (plus 5 pixel borders).
	} else {
		width = (document.body.clientWidth/2) - (160); //half the screen width minus half the new window width (plus 5 pixel borders).
	}

	var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
	var dsocleft=document.all? iebody.scrollLeft : pageXOffset
	var dsoctop=document.all? iebody.scrollTop : pageYOffset

	document.all.loading.style.top=height + dsoctop;
	document.all.loading.style.left=width + dsocleft;
	document.all.loading.style.visibility="visible";
	document.all.keywordSearch.style.visibility="hidden";
	document.all.loading.innerHTML = 'LOADING...PLEASE WAIT<br><img src="/images/spinning-wheel-throbber.gif">'; 
	
	document.all.FreezePane.className = 'FreezePaneOn'; 
	
}

function showKeywordSearch() {

	//gets top and left positions based on user's resolution so div is centered.
	var width;
	var height;
	
	height = 50; 
	if (window.innerWidth) {
		 //if browser supports window.innerWidth
		width = (window.innerWidth/2) - (200); //half the screen width minus half the new window width (plus 5 pixel borders).
	} else {
		width = (document.body.clientWidth/2) - (200); //half the screen width minus half the new window width (plus 5 pixel borders).
	}

	var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
	var dsocleft=document.all? iebody.scrollLeft : pageXOffset
	var dsoctop=document.all? iebody.scrollTop : pageYOffset

	document.all.keywordSearch.style.top=height + dsoctop;
	document.all.keywordSearch.style.left=width + dsocleft;
	document.all.keywordSearch.style.visibility="visible";
	
	document.getElementById('keywordSearchForm:querySearch').focus();
	
}
