var chap_array = new Array(
    ["25 - Digital World!",'25'],

    ["24 - A Fight Against the Future!",'24'],

    ["23 - Neo!",'23'],

    ["22 - The Demon Lord Barbamon!",'22'],

    ["21 - Paired Devices Digimon Twin",'21'],

    ["20 - Death Struggle - Three Commanders",'20'],

    ["19 - System World!",'19'],

    ["18 - Break Through the Firewall!",'18'],

    ["17 - I...",'17'],

    ["16 - Perfect Level, Risegreymon",'16'],

    ["15 - Dark Area",'15'],

    ["14 - Reunion!",'14'],

    ["13 - The Other Overseer",'13'],

    ["12 - The City of Light, Light City",'12'],

    ["11 - Pichimon's Secret",'11'],

    ["10 - The Girl Norun",'10'],

    ["9 - The Black Digicore!",'9'],

    ["8 - Sun Caravan",'8'],

    ["7 - Vs Cannon Beemon",'7'],

    ["6 - i-Land",'6'],

    ["5 - Yuu and Gaomon",'5'],

    ["4 - Commandments of Terror",'4'],

    ["3 - Greymon vs Peckmon!",'3'],

    ["2 - Black-winged Knight",'2'],

    ["1 - Welcome to the Digimon Net Game!!",'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]);
    }
}
