  function BenchMarkVisibilityChecker(objBenchmarkSets,bAllVisible)
  {
    this.selSets=new Array();
    this.anyVisible=false;
    this.allVisible=bAllVisible;
    for (var i=0; i< objBenchmarkSets.options.length; i++)
    {
      var objOption=objBenchmarkSets.options[i];
      if( objOption.selected>0)
       this.selSets[this.selSets.length]="#"+objOption.value+"#";
    }

    function mf_getDisplay(sBenchmarkGroups)
    {
      if(this.allVisible)
        return "";
      for (var i=0; i< this.selSets.length; i++)
        if(sBenchmarkGroups.indexOf(this.selSets[i],0)>=0)
        {
          this.anyVisible=true;
          return "";
        }
      return "none";
    }

    function mf_getDisplayNoneVisible()
    {
      if(this.allVisible)
        return "none";
      if(this.anyVisible)
        return "none";
      else
        return "block";
    }

    this.getDisplayNoneVisible=mf_getDisplayNoneVisible;
    this.getDisplay=mf_getDisplay;
  }
