function goSearch() {
 	//window.navigate("/snplma/projectSearch.do?dispatch=start");
 	window.location.href="/snplmaprephase1/snplma/projectSearch.do?dispatch=start";
 }

function categoryChanged() {
	document.getElementById("loading").style.display = "block";
	document.HeaderForm.round.selectedIndex = 0;
	document.HeaderForm.countyCd.selectedIndex = 0;
	if (document.HeaderForm.categoryCd.selectedIndex == 0) {
		alert("Please choose a CATEGORY option!");
		return;
	}
	
	document.HeaderForm.dispatch.value="category";
	document.HeaderForm.categoryDesc.value=document.HeaderForm.categoryCd.options[document.HeaderForm.categoryCd.selectedIndex].text;
	document.HeaderForm.submit();
}
function roundChanged() {
	document.getElementById("loading").style.display = "block";
	document.HeaderForm.categoryCd.selectedIndex = 0;
	document.HeaderForm.countyCd.selectedIndex = 0;
	if (document.HeaderForm.round.selectedIndex == 0) {
		alert("Please choose a ROUND option!");
		return;
	}

	document.HeaderForm.dispatch.value="round";
	document.HeaderForm.submit();
}
function countyChanged() {
	document.getElementById("loading").style.display = "block";
	document.HeaderForm.categoryCd.selectedIndex = 0;
	document.HeaderForm.round.selectedIndex = 0;
	if (document.HeaderForm.countyCd.selectedIndex == 0) {
		alert("Please choose a COUNTY option!");
		return;
	}

	document.HeaderForm.dispatch.value="county";
	document.HeaderForm.countyDesc.value=document.HeaderForm.countyCd.options[document.HeaderForm.countyCd.selectedIndex].text;
	document.HeaderForm.submit();
}

function retrieveProject(projectNo) {
	document.retrieveForm.projectNo.value = projectNo;
	document.retrieveForm.dispatch.value = "retrieve";
	document.retrieveForm.submit();
}

function retrieveImages(projectId) {
	document.retrieveForm.projectNo.value = projectNo;
	document.retrieveForm.dispatch.value = "image";
	document.retrieveForm.submit();
}
