function validate(searchForm) {
	var themessage = "";
	if (searchForm.category.value=="no") {
		themessage = "Please select a category to search!";
	} 
	if (searchForm.query.value=="") {
		themessage = themessage  + '\n' + "Please enter a search term!";
	}
	//alert if fields are empty and cancel form submit
	if (searchForm.category.value !== "no" && searchForm.query.value !== "") {
		searchForm.submit();
		return true;
	}
	else {
		alert(themessage);
		return false;
	}
}
