<!-- FusionChart -->
      /**
      * updateChart method is invoked when the user clicks on a pie slice.
      * In this method, we get the index of the factory after which we request for XML data
      * for that that factory from FactoryData.php, and finally
      * update the Column Chart.
      * @param factoryIndex Sequential Index of the factory.
      */
      function updateChartKunjungan(satuan){
         //DataURL for the chart
         var strURL = "includes/data-kunjungan.php?sat=" + satuan;

         //URLEncode it - NECESSARY.
         strURL = escape(strURL);

         //Get reference to chart object using Dom ID "PuskesmasDetailed"
         var chartObj = getChartFromId("kunjunganChart");
		 
		 //Send request for XML
         chartObj.setDataURL(strURL);
      }
	  
	  function updateChartPetikemas(satuan){
         //DataURL for the chart
         var strURL = "includes/data-petikemas.php?sat=" + satuan;

         //URLEncode it - NECESSARY.
         strURL = escape(strURL);

         //Get reference to chart object using Dom ID "PuskesmasDetailed"
         var chartObj = getChartFromId("petikemasChart");
		 
		 //Send request for XML
         chartObj.setDataURL(strURL);
      }
	
<!-- End Of FusionChart -->
