var chap_array = new Array(
    ["24 - Gon Collects Honey with His Friends in the Forest",'24'],

    ["23 - Gon Does Some Physical Training",'23'],

    ["22 - Gon has Fun with Orangutan Family",'22'],

    ["21 - Gon Raises a Chick",'21'],

    ["20 - Gon with the Wise Huge Elephant",'20'],

    ["19 - Gon Climbs a Mountain",'19'],

    ["18 - Gon and His Wounded Fellows",'18'],

    ["17 - Gon and the Bird Nest on His Head",'17'],

    ["16 - Gon Goes Through the Underground",'16'],

    ["15 - Gon and His Posse",'15'],

    ["14 - Gon Journeys into the Desert",'14'],

    ["13 - Gon Becomes a Turtle",'13'],

    ["12 - Gon Fights with Wolf Brothers",'12'],

    ["11 - Gon Goes Mushroom Hunting",'11'],

    ["10 - Gon Glares",'10'],

    ["9 - Gon Goes Down the Big River",'9'],

    ["8 - Gon Lives with the Penguins",'8'],

    ["7 - Gon Gets Angry at the Forest",'7'],

    ["6 - Gon Struggles Against Tick",'6'],

    ["5 - Gon Plays with a Giant Shark",'5'],

    ["4 - Gon Goes Flying",'4'],

    ["3 - Gon Builds a Mansion",'3'],

    ["2 - Gon Goes Hunting",'2'],

    ["1 - Gon Eats and Sleeps",'1']
);
for (var i=0; i<chap_array.length; i++) {
    document.getElementById('id_chapter_1').options[i] = new Option(chap_array[i][0],chap_array[i][1]);
    if (document.getElementById('id_chapter_2')) {
        document.getElementById('id_chapter_2').options[i] = new Option(chap_array[i][0],chap_array[i][1]);
    }
}
