<!--
function unCheckAll()
{
  // This function finds all "dataset__" checkboxes in the 
  // default form and clears them.  If JavaScript is not
  // enabled, the button won't work (but the plotter will)

  // first, change the button label
  var ourButton = document.getElementById("unCheckButton");
  var oldLabel = ourButton.innerHTML;
  ourButton.innerHTML="<i>working</i>";

  // cycle through all elements of the default form
  var nObj = document.forms[0].elements.length;
  for (var ii=0; ii < nObj; ii++)
    {
      // does the name look like a data checkbox?
      // if so, uncheck it
      var objName = document.forms[0].elements[ii].name;
      if (objName.substring(0,9)=='dataset__')
	document.forms[0].elements[ii].checked=false;
    }

  // restore the button label when done
  ourButton.innerHTML=oldLabel;
}
//-->
