rem: dialog.columnsInput.focus(); 
add: SetTextfieldFocus(dialog.columnsInput); 
context: function ValidateData(){  rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows);  if (rows == "")  {    // Set focus to the offending control    dialog.rowsInput.focus();    return false;  }  columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns);  if (columns == "")  {    // Set focus to the offending control    dialog.columnsInput.focus();    return false;  }  // Set attributes: NOTE: These may be empty strings  borderText = TrimString(dialog.borderInput.value);  if (borderText)   {    // Set the other attributes on the table    if (ValidateNumberString(borderText, 0, maxPixels))      globalElement.setAttribute("border", borderText);  }  var maxLimit;  var isPercent = (dialog.widthPixelOrPercentMenulist.selectedIndex == 1);  widthText = TrimString(dialog.widthInput.value);  if (widthText.length > 0)  {    if (isPercent)      maxLimit = 100;    else      // Upper limit when using pixels      maxLimit = maxPixels;    widthText = ValidateNumberString(widthText, 1, maxLimit);    if (widthText.length == 0)      return false;    if (isPercent)      widthText += "%";    globalElement.setAttribute("width", widthText);  }  isPercent = (dialog.heightPixelOrPercentMenulist.selectedIndex == 1);  heightText = TrimString(dialog.heightInput.value);  if (heightText.length > 0)  {    if (isPercent)      maxLimit = 100;    else      // Upper limit when using pixels      maxLimit = maxPixels;    heightText = ValidateNumberString(heightText, 1, maxLimit);    if (heightText.length == 0)      return false;    if (isPercent)      heightText += "%";    globalElement.setAttribute("height", heightText);  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a62a9dffa18e5793a2281b90ef7939a2ae5b769c/EdInsertTable.js/buggy/editor/ui/dialogs/content/EdInsertTable.js