rem: color = ""; 
add: var color = ""; 
context: function GetColorAndUpdate(ColorWellID){  // Only allow selecting when in custom mode  if (!dialog.CustomColorsRadio.checked) return;  var colorObj = new Object;  var colorWell = document.getElementById(ColorWellID);  if (!colorWell) return;  // Don't allow a blank color, i.e., using the "default"  colorObj.NoDefault = true;  switch( ColorWellID )  {    case "textCW":      colorObj.Type = "Text";      colorObj.TextColor = customTextColor;      break;    case "linkCW":      colorObj.Type = "Link";      colorObj.TextColor = customLinkColor;      break;    case "activeCW":      colorObj.Type = "ActiveLink";      colorObj.TextColor = customActiveColor;      break;    case "visitedCW":      colorObj.Type = "VisitedLink";      colorObj.TextColor = customVisitedColor;      break;    case "backgroundCW":      colorObj.Type = "Page";      colorObj.PageColor = customBackgroundColor;      break;  }  window.openDialog("chrome://editor/content/EdColorPicker.xul", "_blank", "chrome,close,titlebar,modal", "", colorObj);  // User canceled the dialog  if (colorObj.Cancel)    return;  color = "";  switch( ColorWellID )  {    case "textCW":      color = customTextColor = colorObj.TextColor;      break;    case "linkCW":      color = customLinkColor = colorObj.TextColor;      break;    case "activeCW":      color = customActiveColor = colorObj.TextColor;      break;    case "visitedCW":      color = customVisitedColor = colorObj.TextColor;      break;    case "backgroundCW":      color = customBackgroundColor = colorObj.BackgroundColor;      break;  }  setColorWell(ColorWellID, color);   SetColorPreview(ColorWellID, color);    // Setting a color automatically changes into UseCustomColors mode  //dialog.CustomColorsRadio.checked = true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5986ab59396a3071965154ed4499fa5a734750cd/EdColorProps.js/clean/editor/ui/dialogs/content/EdColorProps.js