//store the quotations in arrays
quotes = new Array(16);
authors = new Array(16);
quotes[0] = "You are never a loser until you quit trying.";
authors[0] = "Mike Ditka";
quotes[1] = "If you aren't going all the way, why go at all?";
authors[1] = "Joe Namath ";
quotes[2] = "It is a rough road that leads to the heights of greatness.";
authors[2] = "Seneca ";
quotes[3] = "Defeat is not the worst of failures. Not to have tried is the true failure.";
authors[3] = "George E. Woodberry";
quotes[4] = "Don't count the days, make the days count.";
authors[4] = "Muhammad Ali";
quotes[5] = "I hated every minute of training, but I said, don't quit. Suffer now and live the rest of your life as a champion.";
authors[5] = "Muhammad Ali";
quotes[6] = "Nobody ever drowned in sweat.";
authors[6] = "Marine saying";
quotes[7] = "Inaction breeds doubt and fear. Action breeds confidence and courage.";
authors[7] = "Dale Carnegie";
quotes[8] = "Satisfaction does not come with achievement, but with effort.";
authors[8] = "Gandhi";
quotes[9] = "Whatever you want to do, do it now. There are only so many tomorrows.";
authors[9] = "Michael Landon";
quotes[10] = "Health and good humor are to the human body like sunshine is to vegetation.";
authors[10] = "Massilon";
quotes[11] = "Life's royal crown jewels: health and peace of mind. Treat them royally.";
authors[11] = "Unknown";
quotes[12] = "The nearest thing to perpetual motion is the heart. Guard it well. When it stops, you stop.";
authors[12] = "Unknown";
quotes[13] = "Early to bed and early to rise, makes a man healthy, wealthy and wise.";
authors[13] = "Benjamin Franklin";
quotes[14] = "The greatest wealth is health.";
authors[14] = "Virgil";
quotes[15] = "Pain is temporary, glory is everlasting.";
authors[15] = "Unknown";

//calculate a random index
index = Math.floor(Math.random() * quotes.length);

//display the quotation
document.write("<p>\n");
document.write("<i>" + "\"" + quotes[index] + "\"</i><br>\n");
document.write("" + "- " + authors[index] + "\n");
document.write("</p>\n");

//document.write("<p>\n");
//document.write(quote[num]);
//document.write("</p>\n");
