var searchForm;
function validateSearchForm() {
	searchForm = document.getElementById("searchForm");
	with( searchForm ) {
		if ( !validateField(zip, "5-Digit Postal Code is required in the Location field!") ) {
			return false;
		}
		if ( !validateDropDown(dist, "A Search Radius is required!") ) {
			return false;
		}
	}
	return true;
}

function validateField(fieldName,alertTxt) {
	with (fieldName) {
		if (value==null || value=="" || value=="Enter your zip code") {
			alert(alertTxt);
			return false;
		} else {
			return true;
		}
	}
}

function validateDropDown(fieldName, alertTxt) {
	if ( fieldName.selectedIndex == 0 )
    {
        alert ( alertTxt);
        return false;
    }
    else {
    	return true;
    }
}