rem: SetTextfieldFocus(dialog.BackgroundImageInput); 
add: SetTextboxFocus(dialog.BackgroundImageInput); 
context: function ValidateAndPreviewImage(ShowErrorMessage){  // First make a string with just background color  var styleValue = backColorStyle+previewBGColor+";";  var retVal = true;  var image = dialog.BackgroundImageInput.value.trimString();  if (image)  {    if (IsValidImage(image))    {      backgroundImage = image;      // Append image style      styleValue += backImageStyle+backgroundImage+");";    }    else    {      backgroundImage = null;      if (ShowErrorMessage)      {        SetTextfieldFocus(dialog.BackgroundImageInput);        // Tell user about bad image        ShowInputErrorMessage(GetString("MissingImageError"));      }      retVal = false;    }  }  else backgroundImage = null;dump("Set preview background CSS: "+styleValue+"\n");  // Set style on preview (removes image if not valid)  dialog.ColorPreview.setAttribute(styleStr, styleValue);  // Note that an "empty" string is valid  return retVal;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cf7a9d0f5652617834ad8a030c662e1cc105f2c5/EdColorProps.js/buggy/editor/ui/dialogs/content/EdColorProps.js