function do_stateChanged(){
	document.officeSearch.action = 'findAnOffice.cfm';
	document.officeSearch.submit();
}
function do_search(){
	if (document.officeSearch.region_id.options[document.officeSearch.region_id.selectedIndex].text != "Please select a Region"){
		document.officeSearch.region_name.value = document.officeSearch.region_id.options[document.officeSearch.region_id.selectedIndex].text;
	}
	if (document.officeSearch.state_id.options[document.officeSearch.state_id.selectedIndex].text != "Please select a State"){
		document.officeSearch.state_name.value = document.officeSearch.state_id.options[document.officeSearch.state_id.selectedIndex].text;
	}			
	document.officeSearch.action = 'findAnOffice.cfm?firstSearch=true';
	document.officeSearch.submit();
}
function do_showDiv(divID){
	if (document.getElementById("officeDetails_" + divID).style.display == "none"){
		document.getElementById("officeDetails_" + divID).style.display = "inline";
		document.getElementById("arrowRightDiv_" + divID).style.display = "none";
		document.getElementById("arrowDownDiv_" + divID).style.display = "inline";
	}
	else{
		document.getElementById("officeDetails_" + divID).style.display = "none";
		document.getElementById("arrowRightDiv_" + divID).style.display = "inline";
		document.getElementById("arrowDownDiv_" + divID).style.display = "none";
	}
}
function goMapSearch(state_id) {
	document.officeSearch.state_id.value = state_id;
	document.officeSearch.action = 'findAnOffice.cfm?firstSearch=true';
	document.officeSearch.submit();																		
}