rem: if (!TabPanel || !TablePanel || !CellPanel || !TableTab || !CellTab) { dump("Not all dialog controls were found!!!\n"); window.close; } 
add:   if (window.arguments[1] == "CellPanel") currentPanel = CellPanel; 
context: function Startup(){  if (!InitEditorShell())    return;  dialog = new Object;  if (!dialog)  {    dump("Failed to create dialog object!!!\n");    window.close();  }  TableElement = editorShell.GetElementOrParentByTagName("table", null);  CellElement = editorShell.GetElementOrParentByTagName("td", null);  // We allow a missing cell -- see below  if(!TableElement)  {    dump("Failed to get selected element or create a new one!\n");    window.close();  }  var panelName;  TabPanel = document.getElementById("TabPanel");  TablePanel = document.getElementById("TablePanel");  CellPanel =  document.getElementById("CellPanel");  var TableTab = document.getElementById("TableTab");  var CellTab = document.getElementById("CellTab");    if (!TabPanel || !TablePanel || !CellPanel || !TableTab || !CellTab)  {    dump("Not all dialog controls were found!!!\n");    window.close;  }  // Get the starting TabPanel name  var StartPanelName = window.arguments[1];  tableGlobalElement = TableElement.cloneNode(false);  if (CellElement)    cellGlobalElement = CellElement.cloneNode(false);  // Activate the Cell Panel if requested  if (StartPanelName == "CellPanel")  {    // We must have a cell element to start in this panel    if(!CellElement)    {      dump("Failed to get selected element or create a new one!\n");      window.close();    }    //Set index for starting panel on the <tabpanel> element    TabPanel.setAttribute("index", 1);        // Trigger setting of style for the tab widgets    CellTab.setAttribute("selected", "true");    TableTab.removeAttribute("selected");    // Start editing on the cell element    globalElement = cellGlobalElement;  }  else  {    // Start editing on the table element    globalElement = cellGlobalElement;  }  if(!CellElement)  {    // Disable the Cell Properties tab -- only allow table props    CellTab.setAttribute("disabled", "true");  }    doSetOKCancel(onOK, null);  // Get widgets  dialog.BorderWidthCheck = document.getElementById("BorderWidthCheck");  dialog.BorderWidthInput = document.getElementById("BorderWidthInput");        // This uses values set on globalElement  InitDialog();  // SET FOCUS TO FIRST CONTROL}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2b34b49a022263caa641dc5083239be58bde91c8/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js