rem: mapName = globalMap.getAttribute("name"); 
add: var mapName = globalMap.getAttribute("name"); 
context: function onOK(){  // handle insertion of new image  if (ValidateData())  {	  // Assign to map if there is one	  if ( globalMap )	  {      mapName = globalMap.getAttribute("name");      dump("mapName = "+mapName+"\n");      if (mapName != "")      {        globalElement.setAttribute("usemap", ("#"+mapName));        if (globalElement.getAttribute("border") == "")          globalElement.setAttribute("border", 0);      }      // Copy or insert image map      imageMap = globalMap.cloneNode(true);      if (insertNewIMap)      {        try        {          editorShell.editorDocument.body.appendChild(imageMap);        //editorShell.InsertElementAtSelection(imageMap, false);        }        catch (e)        {          dump("Exception occured in InsertElementAtSelection\n");        }      }    }    // All values are valid - copy to actual element in doc or     //   element created to insert    editorShell.CloneAttributes(imageElement, globalElement);    if (insertNew)    {      try {        // 'true' means delete the selection before inserting        editorShell.InsertElementAtSelection(imageElement, true);      } catch (e) {        dump("Exception occured in InsertElementAtSelection\n");      }    }    // un-comment to see that inserting image maps does not work!    /*test = editorShell.CreateElementWithDefaults("map");    test.setAttribute("name", "testing");    testArea = editorShell.CreateElementWithDefaults("area");    testArea.setAttribute("shape", "circle");    testArea.setAttribute("coords", "86,102,52");    testArea.setAttribute("href", "test");    test.appendChild(testArea);    editorShell.InsertElementAtSelection(test, false);*/    SaveWindowLocation();    CancelTimer();    return true;  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/27bbf3eb5bd93f421368295ebe389f9f7a3e8458/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js