var chap_array = new Array(
    ["32 - Hatsukoi Limited",'32'],

    ["31 - Rainbow Drop",'31'],

    ["30 - The Boy's Escape 4",'30'],

    ["29 - The Boy's Escape 3",'29'],

    ["28 - The Boy's Escape 2",'28'],

    ["27 - The Boy's Escape",'27'],

    ["26 - Sparkling Pool 2",'26'],

    ["25 - Sparkling Pool 1",'25'],

    ["24 - Kappa Fight",'24'],

    ["23 - Konohana Sakuya 3",'23'],

    ["22 - Konohana Sakuya 2",'22'],

    ["21 - Konohana Sakuya 1",'21'],

    ["20 - The Melancholy of the Chocolate Bomber 3",'20'],

    ["19 - The Melancholy of the Chocolate Bomber 2",'19'],

    ["18 - The Melancholy of the Chocolate Bomber",'18'],

    ["17 - The Shape of Love",'17'],

    ["16 - The Bewitching Watarase-san",'16'],

    ["15 - Let's Kiss",'15'],

    ["14 - Kotatsu, Bridge And",'14'],

    ["13 - Lusty Communication",'13'],

    ["12 - Want to Say, but Can't Say",'12'],

    ["11 - Before the Snow Starts Falling",'11'],

    ["10 - Reverse Boy!",'10'],

    ["9 - Tokimeki Dolphin",'9'],

    ["8 - Pure-Hearted Afro",'8'],

    ["7 - More Beloved Than Anything in the World",'7'],

    ["6 - The Worrying Brother",'6'],

    ["5 - Secret",'5'],

    ["4 - Unbalance",'4'],

    ["3 - The Everything Girl",'3'],

    ["2 - Yamamoto-san",'2'],

    ["1 - Beautiful Girl and a Monster",'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]);
    }
}
