/*
Place all generic scripts for mmolecule.com here
*/


/*
Allows us to pass custom arguments on PostBack
*/
function DoPostBack(eventTarget, eventArgument) 
{
  __doPostBack(eventTarget, eventArgument);     
}


function ChangeCheckBoxState(id, checkState)
{
  var cb = document.getElementById(id);
  if (cb != null)
     cb.checked = checkState;
}

function ChangeAllCheckBoxStates(checkState)
{
  // Toggles through all of the checkboxes defined in the CheckBoxIDs array
  // and updates their value to the checkState input parameter
  if (CheckBoxIDs != null)
  {
     for (var i = 0; i < CheckBoxIDs.length; i++)
        ChangeCheckBoxState(CheckBoxIDs[i], checkState);
  }
}


