function checkAll(formName, check, name) {
  form = document.forms[formName];
  for (i=0;i<check.length;i++){
    comment   = 'comment' + i;
    commentID = $(comment);
    if (commentID.checked){
      commentID.checked = false;
    } else {
      commentID.checked = true;
    }
  }
 }

var array = new Array;
function testArray(array) {
  for (i=0; i<array.length; i++){
   alert (array[i]);
  }
}
