/*
	Name         : /publisher/js/publisher.js
	Author       : Frank Marion
	Created      : Wednesday, June 20, 2007; 6:41 PM
	Last Updated : Wednesday, June 20, 2007; 6:41 PM
	History      : Creation.
	Purpose		 : Error checking for the article search field
*/

// Error checking for the article search field
function CompleteMe() {
	var f = document.getElementById('article_search_field');
	var colour = 'salmon';
	var errorstring='';
	if (f.value.length == 0) {
		errorstring += 'Please enter one or more words to search against';
	}
	if (f.value == 'Keywords') {
		errorstring += 'Please enter one or more words to search against';
	}
	if (errorstring != '') {
		f.style.backgroundColor=colour;
		alert(errorstring);
		return false;
	} else {
		return true;
	}
}
