function DoDelete(action, msg){
  if (confirm(msg))
    admin.action.value = action;
}

function check_all(this_box, these_boxes){

  if (these_boxes){
    if (these_boxes.length > 1){
      for (var i = 0; i < these_boxes.length; i++){
        var x = these_boxes[i];
        if ((x.type == 'checkbox')){
          if (!x.disabled){
            x.checked = this_box.checked;
            if (this_box.checked) do_check(x); else do_uncheck(x);
          }
        }
      }
    }else{
      var x = these_boxes;
      if (!x.disabled){
        x.checked = this_box.checked;
        if (this_box.checked) do_check(x); else do_uncheck(x);
      }
    }
  }

}

function do_check(this_element){

  highlight(this_element);

}

function do_uncheck(this_element){

  nolight(this_element);

}

function highlight(this_element){

  while (this_element.tagName != "TR"){
    this_element = this_element.parentElement;
  }

  this_element.bgColor = "#C9E3D3";

}

function nolight(this_element){

  while (this_element.tagName != "TR"){
    this_element = this_element.parentElement;
  }

  this_element.bgColor = '#FFFFFF';

}
