

sPattern = /^[\s]+$/
function isEmpty(inputStr) {
	if ((inputStr == null) || (inputStr=="")) return true
	else return false
}


function checkSearch(searchForm) {
str = searchForm.searchText.value
//Empty
if (isEmpty(str)) {
	alert(msgError_emptySearch);
	document.searchForm.searchText.focus();
	return false;
}

//Space
else if (str.match(sPattern)){
alert(msgError_spaceSearch);
document.searchForm.searchText.value="";
document.searchForm.searchText.focus();
return false;
}

return true;
	  
}
