function batch_count_checked(cbs) {
  if (typeof(cbs) == "undefined")
    cbs = batch_get_checkboxes();

  var count = 0;
  for (var i = 0; i < cbs.length; i++)
    if (cbs[i].checked)
      count++;
  return count;
}
// counts how many boxes are checked
counts how many boxes are checked
counts how many boxes are checked
function batch_count_checked(cbs) {
  if (typeof(cbs) == "undefined")
    cbs = batch_get_checkboxes();
  var count = 0;
  for (var i = 0; i < cbs.length; i++)
    if (cbs[i].checked)
      count++;
  return count;
}
function batch_count_checked ( cbs ) { if ( typeof ( cbs ) == "undefined" ) cbs = batch_get_checkboxes ( ) ; var count = 0 ; for ( var i = 0 ; i < cbs . length ; i ++ ) if ( cbs [ i ] . checked ) count ++ ; return count ; }
counts how many boxes are checked
counts how many boxes are checked