function trim (str) {	str = str.replace(/^\s+/, '');	for (var i = str.length - 1; i >= 0; i--) {		if (/\S/.test(str.charAt(i))) {			str = str.substring(0, i + 1);			break;		}	}	return str;}function validateSearchCriteria() {	  var strCriteria = document.getElementById("keyword").value;	  strCriteria = trim(strCriteria);	  	  if (strCriteria == '') {		  	return false;	  }	  	  if (strCriteria.length < 3) {		  	alert('Search criteria must have at least three characters.');		    return false;	  }	  	  if (strCriteria == 'Search by Title, Author, Description') {	    return false;	  }	  	  return true;}