rem: if (!gSearchInput.showingSearchCriteria) 
add: if (gSearchInput && !gSearchInput.showingSearchCriteria) 
context: function onClearSearch(){  if (!gSearchInput.showingSearchCriteria) // ignore the text box value if it's just showing the search criteria string  {//     gQuickSearchFocusEl = gLastFocusedElement;  //save of the last focused element so that focus can be restored     onAbClearSearch();     // this needs to be on a timer otherwise we end up messing up the focus while the Search("") is still happening     setTimeout("restoreSearchFocusAfterClear();", 0);   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/199f495389b7e1c2c15223f04fb8747aaf8ad608/abCommon.js/clean/mail/components/addrbook/content/abCommon.js