var chap_array = new Array(
    ["31 - People are Indecisive Things",'31'],

    ["30 - It's Hard to Change People",'30'],

    ["29 - What Do You Know",'29'],

    ["28 - But There's Something I Know",'28'],

    ["27 - Why Don't I Ever Understand Things",'27'],

    ["26 - I Don't Even Know Myself",'26'],

    ["25 - Then Why Are You Crying",'25'],

    ["24 - How Am I Overdoing It",'24'],

    ["23 - Please Don't Overdo It",'23'],

    ["22 - How Could I Possibly Be Lonely",'22'],

    ["21 - Won't You Be Lonely That Way",'21'],

    ["20 - I Don't Need This Love Thing",'20'],

    ["19 - You Definitely Still Need Love",'19'],

    ["18 - What Else Do You Need",'18'],

    ["17 - Is Money Alone Really Enough",'17'],

    ["16 - It's Ok If You Don't Have Anything Else, Money Alone is Enough",'16'],

    ["15 - The Thing You Need in Order to Survive",'15'],

    ["14 - In the End They are Bad Guys",'14'],

    ["13 - Don't Think that Things are Settled Just Like This",'13'],

    ["12 - Then, Not One of You is Bad",'12'],

    ["11 - I Said I'm Not a Bad Guy",'11'],

    ["10 - I'm not a Bad Guy!",'10'],

    ["9 - Who's Bad",'9'],

    ["8 - Sometimes Being Greedy is a Good Thing",'8'],

    ["7 - Being Greedy for Isn't Allowed",'7'],

    ["6 - Greedy for Cakes",'6'],

    ["5 - I Like Both, Chocolate and Strawberry Cakes",'5'],

    ["4 - It's Hard to Give up Strawberries",'4'],

    ["3 - Chocolate Cake, Anyone",'3'],

    ["2 - Strawberry or Chocolate",'2'],

    ["1 - What's Your Favourite Cake",'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]);
    }
}
