rem: doAltTextError = firstTimeOkUsed; firstTimeOkUsed = false;  
add:  gDoAltTextError = true; 
context: function onAccept(){  // Show alt text error only once  // (we don't initialize doAltTextError=true  //  so Advanced edit button dialog doesn't trigger that error message)  doAltTextError = firstTimeOkUsed;  firstTimeOkUsed = false;  if (ValidateData())  {    editorShell.BeginBatchChanges();    if (gRemoveImageMap)    {      globalElement.removeAttribute("usemap");      if (gImageMap)      {        editorShell.DeleteElement(gImageMap);        gInsertNewIMap = true;        gImageMap = null;      }    }    else if (gImageMap)    {      // Assign to map if there is one      var mapName = gImageMap.getAttribute("name");      if (mapName != "")      {        globalElement.setAttribute("usemap", ("#"+mapName));        if (globalElement.getAttribute("border") == "")          globalElement.setAttribute("border", 0);      }      if (gInsertNewIMap)      {        try        {          editorShell.editorDocument.body.appendChild(gImageMap);        //editorShell.InsertElementAtSelection(gImageMap, false);        }        catch (e)        {          dump("Exception occured in InsertElementAtSelection\n");        }      }    }    editorShell.CloneAttributes(imageElement, globalElement);    if (gInsertNewImage)    {      try {        // 'true' means delete the selection before inserting        // in case were are converting an image to an input type="image"        editorShell.InsertElementAtSelection(imageElement, true);      } catch (e) {        dump(e);      }    }    editorShell.EndBatchChanges();    SaveWindowLocation();    return true;  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6ff254ec3a2c3d4e6e690535f65f89a007c66b98/EdInputImage.js/buggy/editor/ui/dialogs/content/EdInputImage.js