function Show(obj)
  { if (obj.style.display == "none")
      { obj.style.display = "inline";
      }
    else
      { obj.style.display = "none";
    }
  }

function setCheckboxes(the_form, the_boxes, do_check)
  { var elts      = document.forms[the_form].elements[the_boxes];
    var elts_cnt  = elts.length;

    for (var i = 0; i < elts_cnt; i++) {
        elts[i].checked = do_check;
    } // end for

    return true;
  } // end of the 'setCheckboxes()' function


function setCheckboxesDefault(the_form, the_boxes)
  { var elts      = document.forms[the_form].elements[the_boxes];
    var elts_cnt  = elts.length;

    for (var i = 0; i < elts_cnt; i++) {
        elts[i].checked = elts[i].defaultChecked;
    } // end for

    return true;
  } // end of the 'setCheckboxes()' function


function openprint(url,fwidth) {
//  owin = open(url,'','toolbar=1,status=1,scrollbars=1,width=716,height=500,resizable=1,top=20,left=20');
  owin = open(url,'','toolbar=yes,status=yes,,menubar=yes,scrollbars=yes,width='+fwidth+',height=500,resizable=yes,top=20,left=20');
  owin.focus();
}


