
sPattern = /^[\s]+$/
function isEmpty(inputStr) {
	if ((inputStr == null) || (inputStr=="")) return true
	else return false
}


function checkSearch(searchForm) {
str = searchForm.searchText.value
if (isEmpty(str)) {
	alert("Please enter a valid entry for the Search");
	document.searchForm.searchText.focus();
	return false;
}



else if (str.match(sPattern)){
alert("Spaces are not allowed. Please enter a valid entry for the Search");
document.searchForm.searchText.value="";
document.searchForm.searchText.focus();
return false;
}


return true;
	  
}