}
// browse all its subfields
var subfields = whichfield.closest('ul').getElementsByTagName('input');
var subfields = whichfield.parentNode.parentNode.getElementsByTagName('input');
var re = /^tag_\d*_code_/;
for (var i = 0, len = subfields.length; i < len; i++) {
for(var i=0, len = subfields.length ; i< len ; i++) {
-