var chap_array = new Array(
    ["34 - Brew Tempest Part 1",'34'],

    ["33 - Duel Arts",'33'],

    ["32 - The Corner of the Room",'32'],

    ["31 - Reunion Express - Last Part",'31'],

    ["30 - Reunion Express - First Part",'30'],

    ["29 - Snake",'29'],

    ["28 - Bodyguard - Last Part",'28'],

    ["27 - Bodyguard - First Part",'27'],

    ["26 - Trial Run - Last Part",'26'],

    ["25 - Trial Run - Middle Part",'25'],

    ["24 - Trial Run - First Part",'24'],

    ["23 - Daily Life",'23'],

    ["22 - Fight to the Death - Part 7",'22'],

    ["21 - Fight to the Death - Part 6",'21'],

    ["20 - Fight to Death - Part 5",'20'],

    ["19 - Fight to Death - Part 4",'19'],

    ["18 - Christmas Eve, Fight to Death - Part 3",'18'],

    ["17 - Christmas Eve, Fight to Death - Part 2",'17'],

    ["16 - Christmas Eve, Fight to Death - Part 1",'16'],

    ["15 - Foundation Commenoration, Christmas Eve",'15'],

    ["14 - Kokuryu Part2",'14'],

    ["13 - Kokuryuu",'13'],

    ["12 - Written Exam",'12'],

    ["11 - Experiment sequel",'11'],

    ["10 - Experiment 1",'10'],

    ["9 - The Soul that Persisted",'9'],

    ["8 - Youtou 2",'8'],

    ["7 - Youtou 1",'7'],

    ["6 - Seiken",'6'],

    ["5 - Demon Sword Ragnarok Last Part",'5'],

    ["4 - Demon Sword Ragnarok First Part",'4'],

    ["3 - The New Student and Soul Observation",'3'],

    ["2 - Extra Lesson Last Part",'2'],

    ["1 - Extra Lessons First Part",'1'],

    ["0 - Soul Eater + Black Star + Death the Kid",'0']
);
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]);
    }
}
