/**
 * Search Box form
 * Adam Shannon
 * 07/30/2009
 */

// Listen for the text box focus
var search_box = document.getElementById("search");
	search_box.onfocus = function () {
		if (this.value == 'Search...') {
			this.value = '';
		}
	}
	
	// Once the focus is lost check to see if the value is blank
	search_box.onblur = function () {
		if (this.value == '') {
			this.value = 'Search...';
		}
	}
	
// Clear the selected text box on click
function clear_element(element) {
	// Grab the element
	var element = document.getElementById(element);
		element.value = '';
		element.focus();
	
return;
}