rem: numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj); foundElement = elt.value; 
add: var countObj = {value:0} foundElement = gEditor.getSelectedOrParentTableElement(tagNameObj, countObj); numSelected = countObj.value 
context: function InitJoinCellMenuitem(id){  // Change text on the "Join..." item depending if we  //   are joining selected cells or just cell to right  // TODO: What to do about normal selection that crosses  //       table border? Try to figure out all cells  //       included in the selection?  var menuText;  var menuItem = document.getElementById(id);  if (!menuItem) return;  // Use "Join selected cells if there's more than 1 cell selected  var numSelected;  var foundElement;    try {    var elt = { value: null };    var tagNameObj = {};    numSelected = gEditor.getSelectedOrParentTableElement(elt,                                          tagNameObj);    foundElement = elt.value;  }  catch(e) {}  if (foundElement && numSelected > 1)    menuText = GetString("JoinSelectedCells");  else    menuText = GetString("JoinCellToRight");  menuItem.setAttribute("label",menuText);  menuItem.setAttribute("accesskey",GetString("JoinCellAccesskey"));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/27b8578e836492550f5073f04ba3f1c9d1fd7e53/editor.js/buggy/editor/ui/composer/content/editor.js