add: if (i) { if (newBoolValue) document.getElementById('boolOp' + i).setAttribute('value', gBooleanAndText); else document.getElementById('boolOp' + i).setAttribute('value', gBooleanOrText); } 
context: function booleanChanged(event) {    // when boolean changes, we have to update all the attributes on the    // search terms    var newBoolValue =        (event.target.getAttribute("value") == "and") ? true : false;    for (var i=0; i<gSearchTerms.length; i++) {        var searchTerm = gSearchTerms[i].obj;        searchTerm.booleanAnd = newBoolValue;    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/88221379d2a63c2f438fdce7f7b07c317a88cdba/searchTermOverlay.js/buggy/mailnews/base/search/resources/content/searchTermOverlay.js