rem: var searchInput = document.getElementById('searchInput'); 
add: var searchInput = GetSearchInput(); 
context: function SearchBarToggled(){  var searchBox = document.getElementById('searchBox');  if (searchBox)  {    var attribValue = searchBox.getAttribute("hidden") ;    if (attribValue == "true")    {      /*come out of quick search view */      if (gDBView && gDBView.isSearchView)        onClearSearch();    }    else    {      /*we have to initialize searchInput because we cannot do it when searchBox is hidden */      var searchInput = document.getElementById('searchInput');      searchInput.value="";    }  }  for (var currentNode = top.document.commandDispatcher.focusedElement; currentNode; currentNode = currentNode.parentNode) {    if (currentNode.getAttribute("hidden") == "true") {      SetFocusThreadPane();      return;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1da50ef5df7e61d6535754d2ada466fb14feac1d/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js