<input type=checkbox value=1>
<input type=checkbox value=2>
<input type=checkbox value=3>
<input type=checkbox value=4>
<script>
var fo=document.all.tags("Input");
   var chbox = new Array();
   for(i=0,j=0;i<fo.length;i++){
   if(fo[i].type == "checkbox"){
   chbox[j++] =fo[i].value;
   }
   }
alert(chbox)
</script>