// -------------------------------------------
//  *************  FUNCTIONS   *************
// --------------------------------------------


// ------------------------------------------------------------------
//
// name:      | checkAllRecords
// purpose:   | used to check all the collection checkboxes
//            |
// colled by: | Clicking the "check all collections" button on
//	      | the search form
// calls:     | none
// input:     | form reference
// returns:   | none
//
// ------------------------------------------------------------------

function checkAllRecords( theForm )
{
  var ele = "";
  for (var i = 0; i < theForm.elements.length; i++)
    {
      ele = theForm.elements[i];
      if ((ele.type == "checkbox") && (ele.name == 'c'))
        {
          ele.checked = true;
        }
    }
}


// ------------------------------------------------------------------
//
// name:      | clearAllRecords
// purpose:   | used to uncheck all the collection checkboxes
//            |
// colled by: | Clicking the "uncheck all collections" button on
//	      | the search form
// calls:     | none
// input:     | form reference
// returns:   | none
//
// ------------------------------------------------------------------

function clearAllRecords( theForm )
{
  var ele = "";
  for (var i = 0; i < theForm.elements.length; i++)
    {
      ele = theForm.elements[i];
      if ((ele.type == "checkbox") && (ele.name == 'c'))
        {
          ele.checked = false;
        }
    }
}


