rem:  var borderText = TrimString(dialog.borderInput.value); if (borderText) {  if (ValidateNumberString(borderText, 0, maxPixels)) globalElement.setAttribute("border", borderText); } 
add:  ValidateNumber(dialog.borderInput, null, 0, maxPixels, globalElement, "border", false);  if (gValidationError) return false; 
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    SetTextboxFocus(dialog.columnsInput);    return false;  }  // Set attributes: NOTE: These may be empty strings  var 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);  var 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);  }  return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/c2fa3c49b1c16b046947244c53e8da3ed6bef89f/EdInsertTable.js/clean/editor/ui/dialogs/content/EdInsertTable.js