<script type="text/javascript"> function check_box(){ var count=document.SearchLineFrm.jingdian.length; var j=0; for(var i=0;i<count;i++){ if (document.SearchLineFrm.jingdian[i].checked) ++j; } if(j==0){ alert("请至少选择一个景点!"); return false; } else{return true; } } </script>