function checkall (id) {
  var check = document.getElementById(id);
  for (var i = 0; i < check.length; i++) {
    if (check[i].type == 'checkbox') if(check[i].checked == false) var notall = 1;
  }
  var checked=notall == '1' ? true:false;
  for (var i=0; i<check.length; i++)
  {
    if (check[i].type == 'checkbox') check[i].checked = checked;
  }
}

//button hover
function bh (id) {
  id.style.background = 'url(images/icons/button_bg_hover.gif)';
}

//button out
function bo (id) {
  id.style.background = 'url(images/icons/button_bg.gif)';
}
