var chap_array = new Array(
    ["26 - Control",'26'],

    ["25 - Comeback",'25'],

    ["24 - Retribution",'24'],

    ["23 - Light vs Dark",'23'],

    ["22 - Battle Plan",'22'],

    ["21 - Scapegoat",'21'],

    ["20 - Incitement",'20'],

    ["19 - Downsizing Game",'19'],

    ["18 - Revival Round",'18'],

    ["17 - Trap",'17'],

    ["16 - Foresight",'16'],

    ["15 - Upper Hand",'15'],

    ["14 - Scheme",'14'],

    ["13 - Light vs Dark",'13'],

    ["12 - Catastrophe",'12'],

    ["11 - Alliance",'11'],

    ["10 - Hope",'10'],

    ["9 - Impatience",'9'],

    ["8 - Commence Battle",'8'],

    ["7 - Game II",'7'],

    ["6 - Game Over",'6'],

    ["5 - Dissonance",'5'],

    ["4 - Intimidating The Enemy",'4'],

    ["3 - Declaration Of War",'3'],

    ["2 - Flaw",'2'],

    ["1 - The Legendary Swindler",'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]);
    }
}
