function searchboxFocus() {
	/*	If the site search textbox has a value of search when the user places focus on it, the
		value will be cleared out.  Finally, the text font color in the textbox is verified set
		to black (as opposed to a diminished black).												*/
	if (document.getElementById('criteria').value == 'Search') {
		document.getElementById('criteria').value			= '';
	}
	document.getElementById('formFocused').value			= '1';	
	document.getElementById('criteria').style.color		= '#000';
}

function searchboxBlur() {
	/*	When the user focus departs from the site search textbox, the value and text color will
		only be initialized if the value of the textbox is basically null (blank).					*/
	if (document.getElementById('criteria').value == '') {
		document.getElementById('criteria').value			= 'Search';
		document.getElementById('criteria').style.color	= '#666';
		document.getElementById('formFocused').value			= '0';		
	}
}

function mainSearchSubmit(serverName) {
	
	if (!document.mainSearchForm.criteria.value || document.mainSearchForm.formFocused.value == '0') {
		alert('Your search entry contained no words; try again.');
		return false;
		}
	else
	{
		document.mainSearchForm.action = 'http://search.usa.gov/search?affiliate=usmint.gov&query='+document.mainSearchForm.criteria.value;
		document.mainSearchForm.submit();
		return true;
	}
	//
}

function mainSearchSubmitBtn(serverName) {

	if (!document.mainSearchForm.criteria.value || document.mainSearchForm.formFocused.value == '0') {
		alert('Your search entry contained no words; try again.');
		}
	else
	{
	document.mainSearchForm.action = 'http://search.usa.gov/search?affiliate=usmint.gov&query='+document.mainSearchForm.criteria.value;
	document.mainSearchForm.submit();
	}
	//
}

