Hi, I have number of checkboxes and another checkbox for "Select All"

I want to check if the user has selected at least one checkbox. Need modification in javascript


<!--script to check, unckeck all boxes-->
<script type="text/javascript">
function All (holiDay) {
	var all= document.getElementById('holiDay');
	 if (checked == false)
           checked = true
          checked = false
	for (var i =0; i < all.elements.length; i++) 
	 all.elements[i].checked = checked;

<!--script to check at least one checkbox selected-->
function Validate(){
var all=document.getElementById('holiDay');
for(var i=0;i<all.elements.length;i++){ 
if(all.elements[i].checked)return true; 
alert("Please identify what warehouses comply:");  
return false; 

<form name="holiDay"....
[]select All

1. <input type="checkbox"....
2. ....
3. ....