rem: OnNextRecord();   gListbox.selectedItem = gListbox.childNodes[2]; window.sizeToContent(); 
add: Browse(1); gListbox.selectedItem = gListbox.getItemAtIndex(0); disableMoveButtons(); 
context: function OnLoadFieldMapImport(){  top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService();  top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService);  top.transferType = "moz/fieldmap";  top.recordNum = 0;  // We need a field map object...  // assume we have one passed in? or just make one?  if (window.arguments && window.arguments[0]) {    top.fieldMap = window.arguments[0].fieldMap;    top.addInterface = window.arguments[0].addInterface;    top.dialogResult = window.arguments[0].result;  }  if (top.fieldMap == null) {    top.fieldMap = top.importService.CreateNewFieldMap();    top.fieldMap.DefaultFieldMap( top.fieldMap.numMozFields);  }  doSetOKCancel( FieldImportOKButton, 0);  gListbox = document.getElementById("fieldList");  ListFields();  OnNextRecord();  // childNodes includes the listcols and listhead  gListbox.selectedItem = gListbox.childNodes[2];  window.sizeToContent();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/29a06d2604e818879f5655534491248dbbdf7fc2/fieldMapImport.js/buggy/mailnews/import/resources/content/fieldMapImport.js