mi sembra che
function act(f) {
r = f.radio_name;
for (i=0; i<r.length; i++)
if (r[i].selected)
f.action = r[i].value;
}