for (i=0;ele=document.form1.elements[i];i++) if (ele.type=='checkbox') if (ele.checked) return;alert('No has marcado nada');return false;