Ver originalif ( f.elements.item(i).type=="radio" ) f.elements.item(i).onclick = function(){recorrer();}