window.onload = init;

function init()
{
		defaultSearch();
}

var defaultVal;

function defaultSearch ()
// This function establishes a default value for
// the search text box and clears it when focused.
// On blur, it checks if the text area was typed into;
// if not, then the default text comes back on.
{
	var searchText = document.getElementById('getUpdatesEmail');
	defaultVal = 'e-mail address';
	if (searchText.value == defaultVal)
	{
		searchText.style.fontStyle = 'italic';
		searchText.style.color = '#666';
	}
	
	searchText.onfocus = function ()
		{
			if (this.style.fontStyle == 'italic' && this.value == window.defaultVal)
			{
				this.value = '';
				this.style.fontStyle = 'normal';
				this.style.color = '#696969';
			}
		}
		
	searchText.onblur = function ()
		{
			if (this.value == '')
			{
				this.value = window.defaultVal;
				this.style.fontStyle = 'italic';
				this.style.color = '#666';
			}
		}
}