function loadpage(load)
{
	// We check to see if the web site is unavailable
	
	if (load == false)
	{
	location.replace("data_and_statistics_ucr_query_unavailable.html");
 	return true;
 	}
		resetForm();	
		
		changeLoc('S');
		showPSRadioButton();
		
}

function resetForm()
{
		var thisForm = document.forms[0];
		
		/*if(thisForm.RPTSELECT.value =="CrimeIndexMaps") {
			showNextLayer("CrimeIndexMaps");}
		else if(thisForm.RPTSELECT.value=="DrgLabMap") {
				thisForm.COUNTY.style.display = "none";
				showNextLayer("DrgLabMap");
				}*/
		if(document.location.pathname == "/MSHPWeb/SAC/county_maps_query.html") {
			setPage('maps');
			thisForm.RPTSELECT.value = "CrimeIndexMaps";
			showNextLayer("CrimeIndexMaps"); }
		else if(document.location.pathname == "/MSHPWeb/SAC/state_maps_query.html") {
				setPage('pdf');
				thisForm.RPTSELECT.value = "DrgLabMap";
				showNextLayer("DrgLabMap");
				 }
		else if(document.location.pathname == "/MSHPWeb/SAC/troop_maps_query.html") {
				setPage('troops');
				thisForm.RPTSELECT.value = "PropertyViolentCrimeMaps";
				showNextLayer("PropertyViolentCrimeMaps");
				 }
		else if(document.location.pathname == "/MSHPWeb/SAC/interactive_maps_query.html") {
				setPage('pdf');
				thisForm.RPTSELECT.value = "FatalsMap";
				showNextLayer("FatalsMap");
				 }
		else { 
		setPage('wf');
		thisForm.DETAIL.value ="A"; //Set time frame select to annual
		thisForm.MONTH.value ="01"; //Set month to January
		thisForm.IBIF_ex.value=''; //No Report Selected
		thisForm.RPTSELECT.value = "";  //No Report Selected
		thisForm.GEOSEL.value ="S"; //Select Statewide
		thisForm.FORMAT.value ="PDF"; //Default to PDF
		}
		//***** finish adding whats needed? *****
}
//**************************************************************************
function setLocation()
{
var thisForm = document.forms[0];
thisForm.PLOCBOX.style.display="none";
if (thisForm.GEOSEL.value =="L")
	{
	thisForm.PLOCBOX.style.display="block";
	thisForm.PLOCBOX.value="ALL";
	thisForm.LOCBOX.value=thisForm.PLOCBOX.value;
	}
}
//*********************************************************************
function showPSRadioButton()
{
var thisForm = document.forms[0];
}
//*********************************************************************