// Search

 function SearchEventClick(theControlString)
    {    
	var theControl = document.getElementById(theControlString);
	// alert("/search-results.aspx?search=" + theControl.value);
        location.href = "/search-results.aspx?search=" + theControl.value;    
    }

 function DoSearch(theControl)
    {    
        location.href = "/search-results.aspx?search=" + theControl.value;    
    }

 function SearchEvent(theControl, theEvent)
    {
        if (window.event)
        {
            if(window.event.keyCode == 13)
            {
                window.event.returnValue = false;
                DoSearch(theControl);
            }
        } else {
            if(theEvent.keyCode == 13)
            {
                theEvent.preventDefault();
                DoSearch(theControl);
            }
        }
    }

function SearchReset(KeywordControl, DefaultText)
{

    var Keywords = KeywordControl.value;

    if (Keywords == '')
        KeywordControl.value = DefaultText;             
        
}
function SearchClear(KeywordControl, DefaultText)
{
    var Keywords = KeywordControl.value;

    if (Keywords == DefaultText)
        KeywordControl.value = '';             
        
}
