var locationFields = [document.getElementById('Country'),
				 	 document.getElementById('State'),
				 	 document.getElementById('Location')];
cascadeLOV(Root + '/XML/Sightings.php?Columns=L.Country,L.State,L.Location&Sort=1,2,3',0,0,-1,locationFields,'<All>',true,false,true);

var taxonFields = [document.getElementById('CommonOrder'),
				  document.getElementById('CommonFamily'),
				  document.getElementById('CommonSpecies')];
cascadeLOV(Root + '/XML/Sightings.php?Columns=O.CommonName,F.CommonName,Sp.CommonName&Sort=1,2,3',0,1,-1,taxonFields,'<All>',true,false,true);


function submitSearch() {
	if (document.forms['PopupForm'] != undefined) {
		useForm = document.forms['PopupForm']
	} else {
		useForm = document.forms['GlobalForm']
	}
	useForm.FromDate.disabled = false;
	useForm.ToDate.disabled = false;

	useForm.Country.disabled = false;
	useForm.State.disabled = false;
	useForm.Location.disabled = false;

	for(x=0;x<useForm.SearchType.length;x++) {
		if(useForm.SearchType[x].checked) {
			useForm.action=Root+'/index.php/Content=List/Type='+useForm.SearchType[x].value;
			break;
		}
	}
	useForm.submit();
}
