rem: var targetValue = "or"; if (booleanAnd) targetValue = "and"; 
add: var targetValue = booleanAnd ? "and" : "or"; 
context: function initializeBooleanWidgets() {    var booleanAnd = true;    // get the boolean value from the first term    var firstTerm = gSearchTerms[0].searchTerm;    if (firstTerm)        booleanAnd = firstTerm.booleanAnd;    // target radio items have value="and" or value="or"    var targetValue = "or";    if (booleanAnd) targetValue = "and";    var targetElement = gSearchBooleanRadiogroup.getElementsByAttribute("value", targetValue)[0];    gSearchBooleanRadiogroup.selectedItem = targetElement;    for (var i=1; i<gSearchTerms.length; i++)     {      if (booleanAnd)        document.getElementById('boolOp' + i).setAttribute('value', gBooleanAndText);      else        document.getElementById('boolOp' + i).setAttribute('value', gBooleanOrText);    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eddb5a2fd3143e1babad49daee3148d674ab6c1b/searchTermOverlay.js/buggy/mailnews/base/search/resources/content/searchTermOverlay.js