// <![CDATA[
function RSsearch(formID)
{
	var theForm = document.getElementById(formID);
	theForm.onfocus 	= function()
	{
		toggleOnOff(this, 'focus')
	}
	theForm.onblur = function()
	{
		toggleOnOff(this, 'blur')
	}
}
function toggleOnOff(elm, onoff)
{
	if (typeof(onoff) == "undefined" )
	{onoff = "blur";}
	if (!elm.base){elm.base = elm.value;}
	if (elm.value == elm.base && onoff != "blur"){elm.value = "";}
	else if(elm.value == "" && onoff == "blur"){elm.value = elm.base;}
}
function validateSearch() {
	if(document.searchForm.searchInput.value == "search" || document.searchForm.searchInput.value == "")
		{
			alert('Please enter a search term');
			document.searchForm.searchInput.focus();
			return false;
		}
	return true;
}
window.onload = function(){RSsearch("searchInput");}
// ]]>
