	function OnSearch(form) { 
		var ok;
		ok = true; 
		if(form.yider.value.length == 0) 
		{
			alert('You must enter some text to search for!'); 
			form.yider.focus(); 
			ok = false;
		} 
		else if(form.yider.value.search(/\*/) != -1 && form.yider.value.search(/\s/) != -1) 
		{
			alert('If you are using the * to generalise your search, you can only search for one word at a time!');
			form.yider.focus();
			ok = false;
		}
		else if(form.yider.value.search(/^\S+\*\S+$/) != -1) 
		{
			alert('You can only use the * at the beginning or end of your search term'); 
			form.yider.focus();
			ok = false;
		} 
		else if(form.yider.value == '*') 
		{
			alert('You cannot search for a general * character!\nSee the search Help');
			form.yider.focus(); 
			ok = false;
		}

		
		if(ok==false){
			return false;
		}
	}