
function HandleSearch()
	{
	if (document.getElementById('searchform')){
		
		//clear email field when user puts focus on field
		document.getElementById('searchbox').onfocus = function()
			{
				if(this.value == "Pick an ingredient"){this.value = "";}		};
		
		//return value to default text if field loses focus and is still empty	
		document.getElementById('searchbox').onblur = function()
			{
				if(this.value == ""){this.value = "Pick an ingredient";}		};
		
	}}

