/**
	Title: removePlaceholder
	Purpose: Removes 'Enter Keyword' in search box on focus
	Parameters: None
	Returns: Nothing
	Known Bugs: None
	Exceptions Thrown: None
	Assumptions: None
	Side Affects: None
	Revision History:
		* Tyler Heslinga 12/29/2010 - Created
*/
function removePlaceholder() {
	if (this.value == 'Enter Keyword') this.value = '';
}

/**
	Title: addPlaceholder
	Purpose: Adds back 'Enter Keyword' if search box is blank on blur
	Parameters: None
	Returns: Nothing
	Known Bugs: None
	Exceptions Thrown: None
	Assumptions: None
	Side Affects: None
	Revision History:
		* Tyler Heslinga 12/29/2010 - Created
*/
function addPlaceholder() {
	if (this.value == '') this.value = 'Enter Keyword';
}

/**
	Title: submitSearchForm
	Purpose: Submits form frmSearch
	Parameters: None
	Returns: Nothing
	Known Bugs: None
	Exceptions Thrown: None
	Assumptions: None
	Side Affects: None
	Revision History:
		* Tyler Heslinga 12/29/2010 - Created
*/
function submitSearchForm() {
	var txt = document.getElementById('q');
	if (txt.value == 'Enter Keyword' || txt.value == '') return;
	document.forms['frmSearch'].submit();
}

document.getElementById('q').onfocus = removePlaceholder;
document.getElementById('q').onblur = addPlaceholder;
document.getElementById('frmSearchSubmit').onclick = submitSearchForm;
