add: return; } 
context: function initDialog(){  //Get image element from parent  imageElement = window.arguments[0];  if (!imageElement) //If not an image close window    window.close();  //Get image map from parent  imageMap = window.arguments[1];  if (!imageMap) //If no image map close window    window.close();  //find parent inputs  var srcInput = window.opener.document.getElementById("srcInput");  var widthInput = window.opener.document.getElementById("widthInput");  var heightInput = window.opener.document.getElementById("heightInput");  //check for relative url  if (!((srcInput.value.indexOf("http://") != -1) || (srcInput.value.indexOf("file://") != -1))){    if (editorShell.editorDocument.location == "about:blank"){      alert(GetString("ImapRelative"));      window.close();      //TODO: add option to save document now    }    else{      var edDoc = new String(editorShell.editorDocument.location);      var imgDoc = new String(srcInput.value);      imgDoc = imgDoc.split("../");      var len = imgDoc.length;      for (var i=0; i<len; i++){        if (edDoc.length > (String(editorShell.editorDocument.location.protocol).length+2))          edDoc = edDoc.substring(0, edDoc.lastIndexOf("/"));      }      imgDoc = edDoc+"/"+imgDoc[imgDoc.length-1];      srcInputValue = imgDoc;    }  }  else{    srcInputValue = srcInput.value;  }  //Set iframe pointer  frameDoc = window.frames[0].document;  //Fill button array  buttonArray[0] = document.getElementById("pointerButton");  buttonArray[1] = document.getElementById("rectButton");  buttonArray[2] = document.getElementById("cirButton");  buttonArray[3] = document.getElementById("polyButton");  //Create marquee  var marquee = frameDoc.createElement("div");  marquee.setAttribute("id", "marquee");  frameDoc.body.appendChild(marquee);  //Create background div  var bgDiv = frameDoc.createElement("div");  if ( bgDiv ) {    bgDiv.setAttribute("id", "bgDiv");    frameDoc.body.appendChild(bgDiv);  }  //Place Image  var newImg = frameDoc.createElement("img");  if ( newImg ) {    newImg.setAttribute("src", srcInputValue);    if (parseInt(widthInput.value) > 0)      newImg.setAttribute("width", widthInput.value);    if (parseInt(heightInput.value) > 0)      newImg.setAttribute("height", heightInput.value);    newImg.setAttribute("id", "mainImg");    imageEl = frameDoc.getElementById("bgDiv").appendChild(newImg);    imageEl.addEventListener("error", imgError, false);  }  //Resize background DIV to fit image  fixBgDiv();  //Recreate Image Map if it exists  recreateMap();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6f169fbb60610b5cb36fe3631feae43e45cc3c1b/EdImageMap.js/clean/editor/ui/dialogs/content/EdImageMap.js