rem: if ( searchTextItem.value == '' ) { eventTable = gEventSource.getCurrentEvents(); } else if ( searchTextItem.value == " " ) { searchTextItem.value = ''; } else { var FieldsToSearch = new Array( "title", "description", "location" ); eventTable = gEventSource.search( searchText, FieldsToSearch ); } 
context: function unifinderSearchKeyPress( searchTextItem, event ){   var eventTable = new Array();   var searchText = searchTextItem.value;      if ( searchTextItem.value == '' )    {      eventTable = gEventSource.getCurrentEvents();   }   else if ( searchTextItem.value == " " )    {      searchTextItem.value = '';   }   else   {      var FieldsToSearch = new Array( "title", "description", "location" );      eventTable = gEventSource.search( searchText, FieldsToSearch );   }      if( document.getElementById( "erase_command" ) )   {      if( searchText.length <= 0 )         document.getElementById( "erase_command" ).setAttribute( "disabled", "true" );      else         document.getElementById( "erase_command" ).removeAttribute( "disabled" );   }   refreshEventTree( eventTable );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ddb2222e6b72dca2ac82bc3c56242fa1108d3b81/unifinder.js/clean/calendar/resources/content/unifinder.js