rem: dialog.CellImageInput = document.getElementById("CellImageInput"); dialog.CellImageButton = document.getElementById("CellImageButton"); 
context: function Startup(){  if (!InitEditorShell()) return;  selection = editorShell.editorSelection;  if (!selection) return;  dialog = new Object;  if (!dialog)    window.close();  // Get dialog widgets - Table Panel  dialog.TableRowsInput = document.getElementById("TableRowsInput");  dialog.TableColumnsInput = document.getElementById("TableColumnsInput");  dialog.TableHeightInput = document.getElementById("TableHeightInput");  dialog.TableHeightUnits = document.getElementById("TableHeightUnits");  dialog.TableWidthInput = document.getElementById("TableWidthInput");  dialog.TableWidthUnits = document.getElementById("TableWidthUnits");  dialog.BorderWidthInput = document.getElementById("BorderWidthInput");  dialog.SpacingInput = document.getElementById("SpacingInput");  dialog.PaddingInput = document.getElementById("PaddingInput");  dialog.TableAlignList = document.getElementById("TableAlignList");  dialog.TableCaptionList = document.getElementById("TableCaptionList");  dialog.TableInheritColor = document.getElementById("TableInheritColor");  dialog.TableImageInput = document.getElementById("TableImageInput");  dialog.TableImageButton = document.getElementById("TableImageButton");  dialog.RowsCheckbox = document.getElementById("RowsCheckbox");  dialog.ColumnsCheckbox = document.getElementById("ColumnsCheckbox");  dialog.TableHeightCheckbox = document.getElementById("TableHeightCheckbox");  dialog.TableWidthCheckbox = document.getElementById("TableWidthCheckbox");  dialog.TableBorderCheckbox = document.getElementById("TableBorderCheckbox");  dialog.CellSpacingCheckbox = document.getElementById("CellSpacingCheckbox");  dialog.CellPaddingCheckbox = document.getElementById("CellPaddingCheckbox");  dialog.TableHAlignCheckbox = document.getElementById("TableHAlignCheckbox");  dialog.TableCaptionCheckbox = document.getElementById("TableCaptionCheckbox");  dialog.TableColorCheckbox = document.getElementById("TableColorCheckbox");  dialog.TableImageCheckbox = document.getElementById("TableImageCheckbox");  // Cell Panel  dialog.SelectionList = document.getElementById("SelectionList");  dialog.PreviousButton = document.getElementById("PreviousButton");  dialog.NextButton = document.getElementById("NextButton");  dialog.ApplyBeforeMove =  document.getElementById("ApplyBeforeMove");  dialog.KeepCurrentData = document.getElementById("KeepCurrentData");  dialog.CellHeightInput = document.getElementById("CellHeightInput");  dialog.CellHeightUnits = document.getElementById("CellHeightUnits");  dialog.CellWidthInput = document.getElementById("CellWidthInput");  dialog.CellWidthUnits = document.getElementById("CellWidthUnits");  dialog.RowSpanInput = document.getElementById("RowSpanInput");  dialog.ColSpanInput = document.getElementById("ColSpanInput");  dialog.CellHAlignList = document.getElementById("CellHAlignList");  dialog.CellAlignCharInput = document.getElementById("CellAlignCharInput");  dialog.CellVAlignList = document.getElementById("CellVAlignList");  dialog.CellStyleList = document.getElementById("CellStyleList");  dialog.TextWrapList = document.getElementById("TextWrapList");  dialog.CellInheritColor = document.getElementById("CellInheritColor");  dialog.CellImageInput = document.getElementById("CellImageInput");  dialog.CellImageButton = document.getElementById("CellImageButton");  dialog.CellHeightCheckbox = document.getElementById("CellHeightCheckbox");  dialog.CellWidthCheckbox = document.getElementById("CellWidthCheckbox");  dialog.RowSpanCheckbox = document.getElementById("RowSpanCheckbox");  dialog.ColSpanCheckbox = document.getElementById("ColSpanCheckbox");  dialog.CellHAlignCheckbox = document.getElementById("CellHAlignCheckbox");  dialog.CellVAlignCheckbox = document.getElementById("CellVAlignCheckbox");  dialog.CellStyleCheckbox = document.getElementById("CellStyleCheckbox");  dialog.TextWrapCheckbox = document.getElementById("TextWrapCheckbox");  dialog.CellColorCheckbox = document.getElementById("CellColorCheckbox");  dialog.CellImageCheckbox = document.getElementById("CellImageCheckbox");  TabPanel = document.getElementById("TabPanel");  var TableTab = document.getElementById("TableTab");  var CellTab = document.getElementById("CellTab");  TableElement = editorShell.GetElementOrParentByTagName("table", null);  if(!TableElement)  {    dump("Failed to get table element!\n");    window.close();  }  globalTableElement = TableElement.cloneNode(false);  var tagNameObj = new Object;  var countObj = new Object;  var tableOrCellElement = editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj);  selectedCellCount = countObj.value;  if (tagNameObj.value == "td")  {    // We are in a cell    CellElement = tableOrCellElement;    globalCellElement = CellElement.cloneNode(false);    // Tells us whether cell, row, or column is selected    SelectedCellsType = editorShell.GetSelectedCellsType(TableElement);    SetSpanEnable();        // Ignore types except Cell, Row, and Column    if (SelectedCellsType < SELECT_CELL || SelectedCellsType > SELECT_COLUMN)      SelectedCellsType = SELECT_CELL;    // Be sure at least 1 cell is selected.    // (If the count is 0, then we were inside the cell.)    if (selectedCellCount == 0)      editorShell.SelectTableCell();    // Get location in the cell map    curRowIndex = editorShell.GetRowIndex(CellElement);    curColIndex = editorShell.GetColumnIndex(CellElement);    // We save the current colspan to quickly     //  move selection from from cell to cell    if (GetCellData(curRowIndex, curColIndex))      curColSpan = cellData.colSpan;    // Set appropriate icons in the Previous/Next buttons    SetSelectionButtons();    // Starting TabPanel name is passed in    if (window.arguments[1] == "CellPanel")     {      currentPanel = CellPanel;      //Set index for starting panel on the <tabpanel> element      TabPanel.setAttribute("index", CellPanel);        // Trigger setting of style for the tab widgets      CellTab.setAttribute("selected", "true");      TableTab.removeAttribute("selected");      // Use cell element for Advanced Edit dialog      globalElement = globalCellElement;    }  }  if (currentPanel == TablePanel)  {    // Use table element for Advanced Edit dialog    globalElement = globalTableElement;        // We may call this with table selected, but no cell,    //  so disable the Cell Properties tab    if(!CellElement)      CellTab.setAttribute("disabled", "true");  }  doSetOKCancel(onOK, null);  // Note: we must use TableElement, not globalTableElement for these,  //  thus we should not put this in InitDialog.  // Instead, monitor desired counts with separate globals  rowCount = editorShell.GetTableRowCount(TableElement);  lastRowIndex = rowCount-1;  colCount = editorShell.GetTableColumnCount(TableElement);  lastColIndex = colCount-1;  // User can change these via textfields    newRowCount = rowCount;  newColCount = colCount;  InitDialog();  if (currentPanel == CellPanel)    dialog.SelectionList.focus();   else    dialog.TableRowsInput.focus();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c0a534c8efb9e6703626cacd6d61cb6ad8eb6680/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js