<div>
  <script type="text/javascript" id="script_chart_type_options">

    var custom_report_chart_types = new Array();
    function custom_report_update_chart_types(style) {
    if (!custom_report_chart_types) {
    return;
    }
    if (!custom_report_chart_types[style]) {
    return;
    }
    var list = custom_report_chart_types[style];    
    var options = $("displayFieldTypes");
    if (!options) {
    return;
    }
    var selected  = -1;
    if (options.selectedIndex >= 0) {
    list.each(function(type,i) {
    if (type == options[options.selectedIndex].value) {
    selected = i;
    }
    });
    }

    var new_selected = false;
    options.length = 0;
    list.each(function(type,i) {
    var label = $(type+ '_label');
    if (label) {
    name = label.get('text');
    } else {
    name = type;
    }
    var option = new Option(name,type);
    options[i] = option;
    if ( (selected  == -1 ) || (i == selected)) {
    option.selected = true;
    new_selected = type;
    }
    });
    custom_report_show_chart_type(new_selected);
    }
    
    function custom_report_show_chart_type(type) {
    var chart_option = $('chart_type_options_' + type);
    if (!chart_option) {
    return;
    }
    var chart_options = $$('.custom_report_chart_options');
    if (!chart_options) {	   
    return;
    }
    chart_options.each(function(option) {
    var option_id = option.getProperty('id');
    if (option_id == 'chart_type_options_'+type) {
    option.setStyles({'display':"block", 'visibility':"visible"});
    } else {
    option.setStyles({'display':"none", 'visibility':"hidden"});
    }
    });
    }


  </script><span title="Select chart options and view this report as a chart" class="button PieChart_submit_options_toggle">Talangguhit</span>
  <!-- div class="button clickableText PieChart_submit_options_toggle" >(Options)</div -->
  <div class="optionsMenu toggable windowFloats=true windowDraggable=true" id="PieChart_submit_options_menu">
    <div class="optionsMenuTitle window_drag"> Mga Pilian ng Talangguhit </div> 	 
    <br><span class="field_head"><label>Mga Estilo ng Talangguhit</label></span>
    Piliin ang estilo ng talangguhit.
    <span class="form_field">
      <select name="style" id="chart_styles" onchange="custom_report_update_chart_types(this.options[this.selectedIndex].value)"></select></span>
    <br><span class="field_head"><label>Ipinapakitang mga Hanay</label></span>
    Piliin ang paraan na nais mo upang pumili ng mga hanay na ipapakita.
    <span class="form_field">
      <select name="displayFieldsType" id="displayFieldTypes" onchange="custom_report_show_chart_type(this.options[this.selectedIndex].value)"></select></span>
    <br><div id="chart_type_options_one_row_total" class="custom_report_chart_options">

      <h3>Isang Hanay -- Kabuuan</h3>
      <span id="one_row_total_label" style="display:none">Isang hanay (Kabuuan)</span>
      Nagpapakita ng isang hanay na may buong mga bilang na may ganyang halaga para sa hanay na iyan.
      <span class="field_head"><label>Unang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_total:0:formfield" class="reportformfield"></select></span>
      <br><input type="hidden" name="displayFieldsTypes:one_row_total:1:formfield" value="total"></div>

    <div id="chart_type_options_one_row_count" class="custom_report_chart_options">
      <h3>Dalawang mga Hanay -- Kabuuan sa Ikalawa</h3>
      Nagpapakita ng dalawang mga hanay na may kabuuang mga bilang sa ikalawang hanay
      <span id="one_row_count_label" style="display:none">Dalawang mga hanay (Kabuuan nasa Ikalawa)</span>
      <span class="field_head"><label>Unang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_count:0:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikalawang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_count:1:formfield" class="reportformfield">&gt;
	</select></span>
      <br><span class="field_head"><label>Ikalawang Kabuuan ng Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_count:1:aggregate" class="reportformfield_aggregate"><option value="count" selected>Kabuuang Bilang</option><option value="count_distinct">Kabuuang Natatangi</option></select></span>     
    </div>

    <div id="chart_type_options_one_row_numeric" class="custom_report_chart_options">
      <h3>Dalawang mga Hanay -- Ang Ikalawa ay Bilang</h3>
      Nagpapakita ng dalawang mga hanay na ang isa ay may halagang bilang
      <span id="one_row_numeric_label" style="display:none">Dalawang mga hanay (Bilang)</span>
      <span class="field_head"><label>Unang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_numeric:0:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikalawang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_numeric:1:formfield" class="reportformfield_numeric"></select></span>
      <br><span class="field_head"><label>Pagsasama-sama sa Ikalawang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:one_row_numeric:1:aggregate" class="reportformfield_aggregate"><option value="none">Wala</option><option value="sum">Kabuuan</option><option value="maximum">Pinakamataas</option><option value="minimum">Pinakamababa</option><option value="average">Karaniwan</option><option value="count">Kabuuang Bilang</option><option value="count_distinct">Kabuuang Natatangi</option></select></span>     
    </div>







    <div id="chart_type_options_multi_row_total" class="custom_report_chart_options">
      <h3> Kabuuan sa Dalawang mga Hanay</h3>
      Nagpapakita ng kabuuan para sa dalawang mga hanay
      <span id="multi_row_total_label" style="display:none">Dalawang mga hanay (Kabuuan)</span>
      <span class="field_head"><label>Unang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_total:0:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikalawang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_total:1:formfield" class="reportformfield"></select></span>
      <input type="hidden" name="displayFieldsTypes:multi_row_total:2:formfield" value="total"></div>

    <div id="chart_type_options_multi_row_count" class="custom_report_chart_options">
      <h3>Tatlong mga Hanay -- Kabuuan sa Ikatlo</h3>
      <span id="multi_row_count_label" style="display:none">Tatlong mga hanay (Kabuuan sa Ikatlo)</span>
      <span class="field_head"><label>Unang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_count:0:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikalawang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_count:1:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikatlong Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_count:2:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Pagsasama-sama sa Ikatlong Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_count:2:aggregate" class="reportformfield_aggregate"><option value="count">Kabuuang Bilang</option><option value="count_distinct">Kabuuang Natatangi</option></select></span>     
    </div>
    
    <div id="chart_type_options_multi_row_numeric" class="custom_report_chart_options">
      <h3>Tatlong mga Hanay - Ang Ikatlo ay Bilang</h3>
      Nagpapakita ng tatlong mga hanay na ang isa ay bilang.
      <span id="multi_row_numeric_label" style="display:none">Tatlong mga hanay (Bilang)</span>
      <span class="field_head"><label>Unang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_numeric:0:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikalawang Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_numeric:1:formfield" class="reportformfield"></select></span>
      <br><span class="field_head"><label>Ikatlong Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_numeric:2:formfield" class="reportformfield_numeric"></select></span>
      <br><span class="field_head"><label>Pagsasama-sama sa Ikatlong Hanay</label></span>
      <span class="form_field">
	<select name="displayFieldsTypes:multi_row_numeric:2:aggregate" class="reportformfield_aggregate"><option value="sum">Kabuuan</option><option value="maximum">Pinakamataas</option><option value="minimum">Pinakamababa</option><option value="average">Karaniwan</option><option value="count">Kabuuang Bilang</option><option value="count_distinct">Kabuuang Natatangi</option></select></span>     
    </div>
    

    

    <br><p></p>
    <br><span title="Italangguhit ang datong ito" id="PieChart_submit" class="multiformsubmit button">Talangguhit</span> 
    <span class="button optionsMenuButton PieChart_submit_options_hide window_hide"> Isara </span>
  </div>
</div>
