/*Function to validate the search form*/
function validateSearchForm(searchText)
{
	var errorText ="";
	if(searchText.length<3)
	{
		errorText=messages['errors.minlengthUnnamedField'];
	}
	else if(!isAlphaNumericSpace(searchText))
	{
		errorText=messages['errors.notAlphaNumericSpace'];
	}
	if(errorText!="")
	{
		showErrorDlg(errorText);
		return false;
	}
	else
	{
		//Do this as a get rather than a post so don't get problems on BACK button
		window.location="Search.do?s="+escape(searchText);
		return false;
	}
}