rem: if ( inputElement ) { var treerow; var inputElementTreerow = inputElement.parentNode.parentNode;  if ( inputElementTreerow ) { for ( var row = 1;  (treerow = awGetTreeRow(row)); row++ ) { if ( treerow == inputElementTreerow ) return row; } 
add: var row = 0; if (inputElement) { var listitem = inputElement.parentNode.parentNode; while (listitem) { if (listitem.localName == "listitem") ++row; listitem = listitem.previousSibling; 
context: function awGetRowByInputElement(inputElement){  if ( inputElement )  {    var treerow;    var inputElementTreerow = inputElement.parentNode.parentNode;    if ( inputElementTreerow )    {      for ( var row = 1;  (treerow = awGetTreeRow(row)); row++ )      {        if ( treerow == inputElementTreerow )          return row;      }    }  }  return 0;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js