def lookupFieldName( element )
      name = ""
      if element and element.is_a?( REXML::Element )
         name = element.name
         if element.name == "f" and @fields
            fid = element.attributes[ "id" ]
            field = lookupField( fid ) if fid
            label = field.elements[ "label" ] if field
            name = label.text if label
         end
      end
      name
   end
def lookupFieldName( element )
      name = ""
      if element and element.is_a?( REXML::Element )
         name = element.name
         if element.name == "f" and @fields
            fid = element.attributes[ "id" ]
            field = lookupField( fid ) if fid
            label = field.elements[ "label" ] if field
            name = label.text if label
         end
      end
      name
   end
Returns the name of field given an "fid" XML element.