/* 
   New Perspectives on HTML and XHTML
   Case Problem 2

   Name: John Parker
   Date: April 8, 2006   Latest - Revision: October 29, 2006

*/

function getQuote(size)  //Generates a random number between 1 and the value of "size".
   {var rNum=Math.random();
    var rNum=rNum*size;
    var rNum=Math.ceil(rNum);
      
    var mtQuotes = new Array // Returns quote corresponding to the random number.
       (" ", 
        "Whoever stops his ears at the cry of the poor, He will also cry out, but shall not be heard. &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp Proverbs 21:13 ",
        "Jesus said to them, 'Allow the little children to come to me! Don't forbid them, </br> for the Kingdom of God belongs to such as these'. &nbsp Mark 10:14",
        "This is my commandment, that you love one another, even as I have loved you. &nbsp John 15:12",
        "A father of the fatherless, and a defender of the widows, Is God in his holy habitation. &nbsp Psalms 68:5",
        "For the needy shall not always be forgotten, Nor the hope of the poor perish forever. &nbsp Psalms 9:18 ",
        "Let each man give according as he has determined in his heart; not grudgingly,</br> or under compulsion;  for God loves a cheerful giver. &nbsp 2 Corinthians 9:7",
        "But don't forget to be doing good and sharing, for with such sacrifices God is well pleased. &nbsp&nbsp Hebrews 13:16",
        "By this everyone will know that you are my disciples, if you have love for one another. &nbsp John 13:35",
        "...for I was hungry, and you gave me food to eat; I was thirsty, and you gave me drink; </br>I was a stranger, and you took me in. &nbsp Matthew 25:35",
        "Sell all that you have, and distribute it to the poor. You will have treasure in heaven.</br> Come, follow me.. &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp Luke 18:22"
       ); 
    var quoteText = mtQuotes[rNum];
    return quoteText;}



