add: if (! theBuffer.onclick) theBuffer.onclick = textAreaFocus; 
context: function refreshBufferList(n, src) {    // display only the current buffer (textarea)    // show labels for each buffer    var theBuffer = null;    var theParent = document.getElementById(g_cq_buffers_id);    // labels are stored in divs in a table cell    var labelsNode = document.getElementById(g_cq_bufferlist_id);    removeChildNodes(labelsNode);    // create an explicit tbody for the DOM (Mozilla needs this)    var tableBody = document.createElement('tbody');    labelsNode.appendChild(tableBody);    // 0 will return false, will set to 0: ok    if (n == null) {        if (g_cq_buffer_current == null) {            n = g_cq_buffer_current;        } else {            n = 0;        }    }    g_cq_buffer_current = n;    debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current);    for (var i = 0; i < g_cq_buffers; i++) {        //debug("refreshBufferList: i = " + i + " of " + g_cq_buffers);        theBuffer = getBuffer(i);        // not there? skip it        if (theBuffer) {          writeBufferLabel(tableBody, i);          hide(theBuffer);          // set up onblur, onfocus handlers          if (! theBuffer.onblur)              theBuffer.onblur = textAreaBlur;          if (! theBuffer.onfocus)              theBuffer.onfocus = textAreaFocus;        }    } // for buffers    // show the current buffer only, and put the cursor there    show(getBuffer());    focusQueryInput();} // refreshBufferList
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/11e761f817a6ee4df55686e1a237038fad231498/cq.js/buggy/cq.js