	function CheckField(sValue)
	{
		var bReturn;
		//var sValue = FieldName.value;
		if(Trim(sValue) == "")
		{
			bReturn = false;
		}
		else{
			bReturn = true;
		}
		return bReturn;
	}

	
		function Trim(strString)
	{
		var intNum
		// Search from Start of String for a character that isn't a space
		if (strString.length == 0) return "";
		intNum = -2;
		do
		{
			if (intNum != -2){
				strString = strString.slice(1)
			}
			intNum = strString.search(" ")
		}
		while (intNum == 0);

		// If string isn't blank Search from End of String for a character that isn't a space
		if (strString.length != 0){
			intNum = -2;
			do
			{
				if (intNum != -2){
					strString = strString.slice(0,-1)
				}
				intNum = strString.lastIndexOf(" ")
			}
			while (intNum == strString.length-1);
		}
		return strString;
	}

function SearchValidate(sValue)
{
	var message = "";
	if(!CheckField(sValue))
		{
		message = "Please enter something to search for.";
		}
	
	if(message != "")
		{
		alert(message);
		return false;
		}
	else
		{
		return true;
		}
}
