var chap_array = new Array(
    ["14 - The Goose-Girl at the Well - Second Part",'14'],

    ["13 - The Goose-Girl at the Well - First Part",'13'],

    ["12 - Cinderella - Third Part",'12'],

    ["11 - Cinderella - Second Part",'11'],

    ["10 - Cinderella - First Part",'10'],

    ["9 - Hansel and Gretel",'9'],

    ["8 - The Goose Girl",'8'],

    ["7 - The Frog Prince",'7'],

    ["6 - Maid Maleen",'6'],

    ["5 - Rapunzel",'5'],

    ["4 - Bluebeard",'4'],

    ["3 - Sleeping Beauty",'3'],

    ["2 - Little Red Riding Hood",'2'],

    ["1 - Snow White",'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]);
    }
}
