// JavaScript Document

function validate(Search) {
	var valid = true;
	var plant = Search.search.value;
	var illegal = /[^a-zA-Z$]/
	if (plant.match(illegal)){
		valid = false;
		alert("You may only use Letters");
		Search.search.focus();  //move cursor to the name field
	}
	if (plant.length <= 3 || plant == "") {
		valid = false;
		alert("Please type a valid name");
		Search.search.focus();  //move cursor to the name field
	}
	return valid;
}