var chap_array = new Array(
    ["29 - Chapter 29",'29'],

    ["28 - Chapter 28",'28'],

    ["27 - Chapter 27",'27'],

    ["26 - Chapter 26",'26'],

    ["25 - Chapter 25",'25'],

    ["24 - Chapter 24",'24'],

    ["23 - Chapter 23",'23'],

    ["22 - Chapter 22",'22'],

    ["21 - Chapter 21",'21'],

    ["20 - Chapter 20",'20'],

    ["19 - Chapter 19",'19'],

    ["18 - Chapter 18",'18'],

    ["17 - Chapter 17",'17'],

    ["16 - Chapter 16",'16'],

    ["15 - Chapter 15",'15'],

    ["14 - Chapter 14",'14'],

    ["13 - Chapter 13",'13'],

    ["12 - Chapter 12",'12'],

    ["11 - Chapter 11",'11'],

    ["10 - Chapter 10",'10'],

    ["9 - Chapter 9",'9'],

    ["8 - Chapter 8",'8'],

    ["7 - Chapter 7",'7'],

    ["6 - Chapter 6",'6'],

    ["5 - Chapter 5",'5'],

    ["4 - Chapter 4",'4'],

    ["3 - Chapter 3",'3'],

    ["2 - Chapter 2",'2'],

    ["1 - Chapter 1",'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]);
    }
}
