rem: SetTextboxFocus(gDialog.srcInput); 
add:  setTimeout(SetTextboxFocus, 0, gDialog.srcInput); 
context: function Startup(){  if (!InitEditorShell())    return;  ImageStartup();  gDialog.hrefInput        = document.getElementById("hrefInput");  gDialog.makeRelativeLink = document.getElementById("MakeRelativeLink");  gDialog.showLinkBorder   = document.getElementById("showLinkBorder");  // Get a single selected image element  var tagName = "img";  if ("arguments" in window && window.arguments[0])  {    imageElement = window.arguments[0];    // We've been called from form field propertes, so we can't insert a link    var imageLinkTab = document.getElementById('imageLinkTab');    imageLinkTab.parentNode.removeChild(imageLinkTab);  }  else  {    // First check for <input type="image">    imageElement = editorShell.GetSelectedElement("input");    if (!imageElement || imageElement.getAttribute("type") != "image") {      // Get a single selected image element      imageElement = editorShell.GetSelectedElement(tagName);      if (imageElement)        gAnchorElement = editorShell.GetElementOrParentByTagName("href", imageElement);    }  }  if (imageElement)  {    // We found an element and don't need to insert one    if (imageElement.hasAttribute("src"))    {      gInsertNewImage = false;      gActualWidth  = imageElement.naturalWidth;      gActualHeight = imageElement.naturalHeight;    }  }  else  {    gInsertNewImage = true;    // We don't have an element selected,    //  so create one with default attributes    imageElement = editorShell.CreateElementWithDefaults(tagName);    if (!imageElement)    {      dump("Failed to get selected element or create a new one!\n");      window.close();      return;    }    gAnchorElement = editorShell.GetSelectedElement(tagName);  }  // Make a copy to use for AdvancedEdit  globalElement = imageElement.cloneNode(false);  // We only need to test for this once per dialog load  gHaveDocumentUrl = GetDocumentBaseUrl();  InitDialog();  if (gAnchorElement)    gOriginalHref = gAnchorElement.getAttribute("href");  gDialog.hrefInput.value = gOriginalHref;  FillLinkMenulist(gDialog.hrefInput, gHNodeArray);  ChangeLinkLocation();  // Save initial source URL  gOriginalSrc = gDialog.srcInput.value;  // By default turn constrain on, but both width and height must be in pixels  gDialog.constrainCheckbox.checked =    gDialog.widthUnitsMenulist.selectedIndex == 0 &&    gDialog.heightUnitsMenulist.selectedIndex == 0;  SetTextboxFocus(gDialog.srcInput);  SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5f73a474712b4ba06c7e7ed81a2b3f0ec64091b1/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js