context: function createPoly(which){  //newPoly = editorShell.CreateElementWithDefaults("area");  var newPoly = frameDoc.createElement("area");  if ( !newPoly )    return;    newPoly.setAttribute("shape", "poly");  var coords = '';  var len = which.childNodes.length;  for(l=0; l<len; l++){    coords += (parseInt(which.style.left)+parseInt(which.childNodes[l].style.left))+","+(parseInt(which.style.top)+parseInt(which.childNodes[l].style.top))+",";  }  coords = coords.substring(0, (coords.length-1));  newPoly.setAttribute("coords", coords);  if (which.getAttribute("hsHref") != "")    newPoly.setAttribute("href", which.getAttribute("hsHref"));  else{    newPoly.setAttribute("nohref", "");  }  if (which.getAttribute("hsTarget") != ""){    newPoly.setAttribute("target", which.getAttribute("hsTarget"));  }  if (which.getAttribute("hsAlt") != ""){    newPoly.setAttribute("alt", which.getAttribute("hsAlt"));  }  //newPoly.removeAttribute("id");  imageMap.appendChild(newPoly);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/EdImageMap.js/clean/editor/ui/dialogs/content/EdImageMap.js