function doselect(me) {
  var inputbox = document.getElementsByTagName("INPUT");
  for (i=0;i<inputbox.length;i++) {
    var box = inputbox[i];
    if (box.nodeName == "INPUT" && box.getAttribute('name') == "host[]") {
      if(me.checked == 1) {
        box.checked = 1;
      } else {
        box.checked = 0;
      }
    }
  }
}

