var chap_array = new Array(
    ["6 - The Rigged Duel",'6'],

    ["5 - Port Town Manticore",'5'],

    ["4 - The Man Known as Haeckel",'4'],

    ["3 - The Secret of Feydon",'3'],

    ["2 - Peacemaker",'2'],

    ["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]);
    }
}
