rem: dialog.heightInput.focus(); 
add: SetTextfieldFocus(dialog.heightInput); 
context: function ValidateData(){  // Height is always pixels  height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels);  if (height == "") {    // Set focus to the offending control    dump("Height is empty\n");    SetTextfieldFocus(dialog.heightInput);    dialog.heightInput.focus();    return false;  }  dump("Setting height="+height+"\n");  globalElement.setAttribute("size", height);  var isPercent = (dialog.pixelOrPercentMenulist.selectedIndex == 1);  var maxLimit;  if (isPercent) {    maxLimit = 100;  } else {    // Upper limit when using pixels    maxLimit = maxPixels;  }  width = ValidateNumberString(dialog.widthInput.value, 1, maxLimit);  if (width == "") {    dump("Width is empty\n");    dialog.widthInput.focus();    return false;  }  if (isPercent)    width = width + "%";dump("HLine: Height="+height+" Width="+width+"\n");  globalElement.setAttribute("width", width);  align = "left";  if (dialog.centerAlign.checked) {    align = "center";  } else if (dialog.rightAlign.checked) {    align = "right";  }  globalElement.setAttribute("align", align);  if (dialog.shading.checked) {    shading = true;    globalElement.removeAttribute("noshade");  } else {    shading = false;    globalElement.setAttribute("noshade", "");  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a62a9dffa18e5793a2281b90ef7939a2ae5b769c/EdHLineProps.js/buggy/editor/ui/dialogs/content/EdHLineProps.js