rem: SetTextfieldFocus(nameInput); 
add: SetTextboxFocus(nameInput); 
context: function Startup(){  if (!InitEditorShell())    return;  doSetOKCancel(onOK, onCancel);  nameInput = document.getElementById("nameInput");  // Get a single selected element of the desired type  anchorElement = editorShell.GetSelectedElement(tagName);  if (anchorElement) {    // We found an element and don't need to insert one    insertNew = false;    // Make a copy to use for AdvancedEdit    globalElement = anchorElement.cloneNode(false);    originalName = anchorElement.name;  } else {    insertNew = true;    // We don't have an element selected,     //  so create one with default attributes    anchorElement = editorShell.CreateElementWithDefaults(tagName);    if (anchorElement) {      // Use the current selection as suggested name      var name = GetSelectionAsText();      // Get 40 characters of the selected text and don't add "...",      //  replace whitespace with "_" and strip non-word characters      name = ConvertToCDATAString(TruncateStringAtWordEnd(name, 40, false));      //Be sure the name is unique to the document      if (AnchorNameExists(name))        name += "_"      // Make a copy to use for AdvancedEdit      globalElement = anchorElement.cloneNode(false);      globalElement.setAttribute("name",name);    }  }  if(!anchorElement)  {    dump("Failed to get selected element or create a new one!\n");    window.close();  }  InitDialog();    SetTextfieldFocus(nameInput);  SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cf7a9d0f5652617834ad8a030c662e1cc105f2c5/EdNamedAnchorProps.js/clean/editor/ui/dialogs/content/EdNamedAnchorProps.js