rem: var fields = data.split( "\n");  for (var i = 0; i < gListbox.childNodes.length - 2; i++) { if (i < fields.length) { gListbox.childNodes[i+2].childNodes[1].setAttribute( 'label', fields[i]); } else { gListbox.childNodes[i+2].childNodes[1].setAttribute( 'label', " "); } }  
add: var fields = data.split("\n"); for (var i = 0; i < gListbox.getRowCount(); i++) gListbox.getItemAtIndex(i).lastChild.setAttribute('label', (i < fields.length) ? fields[i] : ''); 
context: function ShowSampleData( data){  var fields = data.split( "\n");  // childNodes includes the listcols and listhead  for (var i = 0; i < gListbox.childNodes.length - 2; i++) {    if (i < fields.length) {      gListbox.childNodes[i+2].childNodes[1].setAttribute( 'label', fields[i]);    }    else {      gListbox.childNodes[i+2].childNodes[1].setAttribute( 'label', " ");    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/29a06d2604e818879f5655534491248dbbdf7fc2/fieldMapImport.js/buggy/mailnews/import/resources/content/fieldMapImport.js