var chap_array = new Array(
    ["33 - Dinosaur Hunter",'33'],

    ["32 - Avalanche in the Study Room",'32'],

    ["31 - I Will Transfer My Cold to You",'31'],

    ["30 - Tatami Paddy Field",'30'],

    ["29 - Building a Subway",'29'],

    ["28 - N-S Crest",'28'],

    ["27 - Wolf's Home",'27'],

    ["26 - One Hundred Percent Accurate Palm Reading Set",'26'],

    ["25 - Time Cloth",'25'],

    ["24 - Liar's Mirror",'24'],

    ["23 - Robe of Feather",'23'],

    ["22 - Truth Doll",'22'],

    ["21 - The Day of My Birth",'21'],

    ["20 - Dream Bell",'20'],

    ["19 - Horror Story Lamp",'19'],

    ["18 - I Love Roboko!",'18'],

    ["17 - Test Memorizing Toast",'17'],

    ["16 - Run Run Bamboo Horse",'16'],

    ["15 - A Ghost of the Lamp's Smoke",'15'],

    ["14 - Hot Hot in the Snow",'14'],

    ["13 - OO Will ^^ With XX",'13'],

    ["12 - Operation - Propose",'12'],

    ["11 - Full Points for Once in a Life Time",'11'],

    ["10 - Flattering Lipstick",'10'],

    ["9 - Hunting Shades",'9'],

    ["8 - Chin Up to the Ancestors",'8'],

    ["7 - Peko Peko Grasshopper",'7'],

    ["6 - Antique Competition",'6'],

    ["5 - Kobe Abe",'5'],

    ["4 - Operation - Secret Spy",'4'],

    ["3 - Transforming Biscuit",'3'],

    ["2 - Prophecy of Doraemon",'2'],

    ["1 - All the Way from a Future World",'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]);
    }
}
