/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 Wednesday, February 25, 2009 9:25:03 PM
 HAPedit 3.1.11.111
 - - - - - - - - - - - - - - - - - - - - - - - */



function SetAllCheckBoxes(FormName, FieldName, CheckValue)
{
alert("weeeee");
  if(!document.forms[FormName])
    return;
  var objCheckBoxes = document.forms[FormName].elements[FieldName];
  if(!objCheckBoxes)
    return;
  var countCheckBoxes = objCheckBoxes.length;
  if(!countCheckBoxes)
    objCheckBoxes.checked = CheckValue;
  else
    // set the check value for all check boxes
    for(var i = 0; i < countCheckBoxes; i++)
      objCheckBoxes[i].checked = CheckValue;
}


