<!--
// used by the search control in the page header
// nb: assumes form is called "MainForm" as that is what the ID is set to by the base template 
function doSearch()
{
  var theForm = document.getElementById("MainForm");
  theForm.action = "search/searchresults.asp";
  theForm.submit();
}
function catchSearchSubmit(e)
{
	if ((e.keyCode && e.keyCode == 13) || (e.which && e.which == 13))
	{
		e.cancelBubble = true;
		e.returnValue = false;
		doSearch();
	}
}
function inputClearout_clear() {
       if (this.cleared === 0) {
               this.element.value='';
               this.cleared = 1;
       }
}
function inputClearout(inputElement) {
       this.element = inputElement;
       this.cleared = 0;
       this.clear = inputClearout_clear;
}

function doClearout(inputElementObject) {
       if(!inputElementObject.clearout){
               inputElementObject.clearout=new inputClearout(inputElementObject);
       }
       inputElementObject.clearout.clear();
}
//-->