var chap_array = new Array(
    ["24 - I Wanted to See You",'24/01'],

    ["23 - Goodbye Lilim",'23/01'],

    ["22 - Photograph of Doubt",'22/01'],

    ["21 - Heartbeat",'21/01'],

    ["20 - Kiss of Tears",'20/01'],

    ["19 - A Gentle Demon",'19/01'],

    ["18 - Pendant's Whereabouts",'18/01'],

    ["17 - Let's Call Out the Demon!",'17/01'],

    ["16 - Something Good",'16/01'],

    ["15 - Nightmare Once Again!",'15/01'],

    ["14 - Sexy Cooking Showdown!",'14/01'],

    ["13 - Takaya Fever!!",'13/01'],

    ["12 - Hot Spring Maze",'12/01'],

    ["11 - Mysterious Visitor",'11/01'],

    ["10 - Let's Travel",'10/01'],

    ["9 - Miu's Great Investigation",'9/01'],

    ["8 - Entertainment",'8/01'],

    ["7 - Public Kiss",'7/01'],

    ["6 - F Shock",'6/01'],

    ["5 - Miu-chan Debuts!!",'5/01'],

    ["4 - Can't Take It Any Longer!!",'4/01'],

    ["3 - Love Letter",'3/01'],

    ["2 - Perfect Compatibility",'2/01'],

    ["1 - Magical First Kiss",'1/01']
);
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]);
    }
}
