function checkMiniSearchForm(val){
	var msg = '';

	if (val.search_phrase.value=="" || val.search_phrase.value=="Search") {
		msg += '\n- please enter one or more words to Search'
	} else {
		var words = val.search_phrase.value.split(" ");
		if (words.length > 4) {msg += '\n- a maximum of four words can be searched on'}

		var short = false;
		for ( var i in words ) {
			if (words[i].length < 3) {short = true}
		}
		if(short) {msg += '\n- all words must have at least three characters'}
	}

	if ( msg == '' ){ return true; }
	else {
		alert( 'Please check the following and re-submit: \n' + msg );
		return false;
	}
}