
//***********************************************	
//***************** FUNCTIONS *******************
//***********************************************

// do area
function doArea(inForm){
	if(isNav4){
		if (inForm == 'frmSale') theForm = document.SearchResults.document.frmSale;
		if (inForm == 'frmCrime') theForm = document.SearchResults.document.frmCrime;
		if (inForm == 'frmSex') theForm = document.SearchResults.document.frmSex;
		if (inForm == 'frmCapital') theForm = document.SearchResults.document.frmCapital;
		if (inForm == 'frmLanduse') theForm = document.SearchResults.document.frmLanduse;
		if (inForm == 'frmCode') theForm = document.SearchResults.document.frmCode;
		if (inForm == 'frmFlood') theForm = document.SearchResults.document.frmFlood;
		if (inForm == 'frmMPO') theForm = document.SearchResults.document.frmMPO;
		if (inForm == 'frmZone') theForm = document.SearchResults.document.frmZone;
	} else {
		if (inForm == 'frmSale') theForm = document.frmSale;
		if (inForm == 'frmCrime') theForm = document.frmCrime;
		if (inForm == 'frmSex') theForm = document.frmSex;
		if (inForm == 'frmCapital') theForm = document.frmCapital;
		if (inForm == 'frmLanduse') theForm = document.frmLanduse;
		if (inForm == 'frmCode') theForm = document.frmCode;
		if (inForm == 'frmFlood') theForm = document.frmFlood;
		if (inForm == 'frmMPO') theForm = document.frmMPO;
		if (inForm == 'frmZone') theForm = document.frmZone;
	}

	var theRadius = theForm.cbRadius.options[theForm.cbRadius.selectedIndex].value;

	if (theRadius == "") return;

	showLayer("loadLayer");

	document.frmNavigation.Cmd.value = 'AREA';
	document.frmNavigation.Radius.value = theRadius;
	document.frmNavigation.ShowWhat.value = "";
			
	document.frmNavigation.target="";
	//document.frmNavigation.action = 'map.asp';
			
	document.frmNavigation.submit();
}

