function habilitaDeshabilita(form) { ele=form.elements; for(i=0;i<ele.length;i++) if(ele[i].type=='checkbox') ele[i].disabled=form.R1[0].checked; }