rem: if( document.getElementById( "useCustomColors" ).data == 0 ) 
add:  if( document.getElementById( "useCustomColors" ).data == "true" ) 
context: function Startup(){  dialog = new Object;  if (!dialog)    return false;  dialog.ColorPreview = document.getElementById("ColorPreview");  dialog.NormalText = document.getElementById("NormalText");  dialog.LinkText = document.getElementById("LinkText");  dialog.ActiveLinkText = document.getElementById("ActiveLinkText");  dialog.VisitedLinkText = document.getElementById("VisitedLinkText");  dialog.DefaultColorsRadio = document.getElementById("DefaultColorsRadio");  dialog.CustomColorsRadio = document.getElementById("CustomColorsRadio");  dialog.BackgroundImageInput = document.getElementById("BackgroundImageInput");  // The data elements that hold the pref values  dialog.NormalData = document.getElementById("textData");  dialog.LinkData = document.getElementById("linkData");  dialog.ActiveLinkData = document.getElementById("aLinkData");  dialog.VisitedLinkData = document.getElementById("fLinkData");  dialog.BackgroundColorData = document.getElementById("backgroundColorData");  dialog.BackgroundImageData = document.getElementById("backgroundImageData");  browserColors = GetDefaultBrowserColors();  // XXX TODO: This is a problem! If this is false, it overrides ability to display colors set in document!!!//    var useDocumentColors =    prefs.GetBoolPref("browser.display.use_document_colors");  // Use author's browser pref colors passed into dialog  defaultTextColor = browserColors.TextColor;  defaultLinkColor = browserColors.LinkColor;  // Note: Browser doesn't store a value for ActiveLinkColor  defaultActiveColor = defaultLinkColor;  defaultVisitedColor =  browserColors.VisitedLinkColor;  defaultBackgroundColor=  browserColors.BackgroundColor;  // Get the colors and image set by prefs init code   customTextColor = dialog.NormalData.getAttribute("value");   customLinkColor = dialog.LinkData.getAttribute("value");  customActiveColor = dialog.ActiveLinkData.getAttribute("value");  customVisitedColor = dialog.VisitedLinkData.getAttribute("value");  customBackgroundColor = dialog.BackgroundColorData.getAttribute("value");  backgroundImage = dialog.BackgroundImageData.getAttribute("value");  if (backgroundImage)    dialog.BackgroundImageInput.value = backgroundImage;  if( document.getElementById( "useCustomColors" ).data == 0 )    UseDefaultColors();  else    UseCustomColors();  return true;}                   
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/54a108c4b4d04b0bd7997824a695dfac356fbcca/pref-composer.js/clean/editor/ui/composer/content/pref-composer.js