ti dico quello che mi viene in mente.
Se hanno tutti lo stesso tag usa la
getElementsByTagName
e discrimina sull'attributo "name"
getAttribute("name");
obj = getElementsByTagName(tuo_tag);
if (obj) {
for (var i = 0; i < obj.length; i++) {
nome =obj[i]. getAttribute("name");
// confronti con il tuo name
}
}
ciao
sergio