function validate_search(theForm)
{
	if (theForm.query.value == "")
	{
		alert("Please Enter Search Query!");
		theForm.query.focus();
		return (false);
	}
	if (theForm.field.selectedIndex == 1)
	{
		theForm.action = "search.asp";
	}
	
	if (theForm.field.selectedIndex == 2)
	{
		theForm.action = "church_search.asp";
	}

	if (theForm.field.selectedIndex == 3)
	{
		theForm.action = "category_search.asp";
	}

	if (theForm.field.selectedIndex == 4)
	{
		theForm.action = "blog_search.asp";
	}
	
	return (true);
}
