<!--
// sets the hidden searchType variable to either gpin or addr and submits form 
function sendForm(f,strSearchType) {
	this.f = f;
	if(strSearchType == 'gpin') {
		if(!isNaN(f.gpin.value) && (f.gpin.value > 0)) {
			f.typeSearch.value = "gpin";
			return true;
		} else {
			alert("Only numbers are allowed for the GPIN entry.");
			f.gpin.focus();
			f.gpin.select();
			return false;
		}
	} else {
		f.typeSearch.value = "addr";
		if(f.streetName.value=="") {
			alert("A street name must be entered to begin a search.");
			f.streetName.focus();
			f.streetName.select();
			return false;
		}
	}
	
	return true;
}


	
function clearBoxes(txtBox,f) {
//	alert("Hello");
	this.txtBox = txtBox;
		if(txtBox.name == "gpin") {
			document[f].address.value = "";
			document[f].strSegment.value = "";
		} else if(txtBox.name == "strSegment") {
			document[f].address.value = "";
			document[f].gpin.value = "";
		} else {
			document[f].gpin.value = "";
			document[f].strSegment.value = "";
		} 		
//	alert(txtBox.name);
//	alert(txtBox.value);
//	return void;
}
//-->
