rem: SetTextfieldFocus(dialog.TitleInput); 
add: SetTextboxFocus(dialog.TitleInput); 
context: function Startup(){  if (!InitEditorShell())    return;  dialog = new Object;  if (!dialog)  {    dump("Failed to create dialog object!!!\n");    window.close();  }  dialog.PageLocation     = document.getElementById("PageLocation");  dialog.TitleInput       = document.getElementById("TitleInput");  dialog.AuthorInput      = document.getElementById("AuthorInput");  dialog.DescriptionInput = document.getElementById("DescriptionInput");  doSetOKCancel(onOK, onCancel);    // Default string for new page is set from DTD string in XUL,  //   so set only if not new doc URL  var location = editorShell.editorDocument.location;  var lastmodString = GetString("Unknown");dump("location="+location);  if (location != "about:blank")  {    dialog.PageLocation.setAttribute("value", editorShell.editorDocument.location);    // Get last-modified file date+time    // TODO: Convert this to local time?    var lastmod = editorShell.editorDocument.lastModified;  // get string of last modified date    var lastmoddate = Date.parse(lastmod);                  // convert modified string to date    if(lastmoddate != 0)                                    // unknown date (or January 1, 1970 GMT)      lastmodString = lastmoddate;  }dump(", lastmod date="+lastmoddate+"\n");  document.getElementById("PageModDate").setAttribute("value", lastmodString);  authorElement = GetMetaElement("author");  if (!authorElement)  {    authorElement = CreateMetaElement("author");    if (!authorElement)      window.close();    insertNewAuthor = true;  }  descriptionElement = GetMetaElement("description");  if (!descriptionElement)  {    descriptionElement = CreateMetaElement("description");    if (!descriptionElement)      window.close();    insertNewDescription = true;  }    InitDialog();  SetTextfieldFocus(dialog.TitleInput);  SetWindowLocation();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1e7ee6f0f96dbc0326edd55283ca67952efda4df/EdPageProps.js/buggy/editor/ui/dialogs/content/EdPageProps.js