ber of regions.
          RegionNodeList = doc.getElementsByTagNameNS(bd_ns, "Region");
          regionCount = RegionNodeList.length;

          // Get the region data.
          RegionNameNodeList = doc.getElementsByTagNameNS(bd_ns, "RegionName");
          RegionResultNodeList = doc.getElementsByTagNameNS(bd_ns, "RegionResult");

          // Get the sum of the values of the regions.
          var total = 0;
          for (regionIndex = 0; regionIndex &lt; regionCount; regionIndex++)
          total = to