function validar() { for(i=0; ele=document.nombreFormulario.elements[i]; i++) if (ele.type=='checkbox') if (ele.checked) return true; return false; }