numQuotes=30;
quoteArray = new Array(numQuotes);
quoteArray[0]="\"Your talent is God's gift to you.  What you do with it is your gift to God.\"  - Author Unknown"
quoteArray[1]="\"The average pencil is seven inches long, with just a half-inch eraser . . . just in case you thought optimism was dead. \"  - Robert Brault"
quoteArray[2]="\"If they can make penicillin out of moldy bread, they can sure make something out of you.\"  - Muhammed Ali"
quoteArray[3]="\"Whether you think you can or think you can't . . . you're right.\"  - Henry Ford"
quoteArray[4]="\"Success is not the key to happiness.  Happiness is the key to success. If you love what you are doing, you will be successful.\"  - Albert Schweitzer"
quoteArray[5]="\"The force is within you. Force yourself.\"  - Harrison Ford"
quoteArray[6]="\"Insanity is doing the same things over and over again and expecting to get different results.\"  - Albert Einstein" 
quoteArray[7]="\"Whatever the mind of man can conceive (and believe), it CAN achieve.\"  - Napoleon Hill"
quoteArray[8]="\"Good things come to those who wait . . . but only what’s left over from those of us who hustle.\"  - Abraham Lincoln"
quoteArray[9]="\"All that is needed for evil to succeed is for good men to do nothing.\"  - Author Unknown"
quoteArray[10]="\"We are not human beings having a spiritual experience.  We are Spiritual beings having the human experience.\"  - Author Unknown"
quoteArray[11]="\"It's always easier to ask forgiveness than it is to get permission.\"  - Grace Hopper"
quoteArray[12]="\"It is literally true that you can succeed best and quickest by helping others to succeed.\"  - Napoleon Hill"
quoteArray[13]="\"One of the great pleasure in life is doing what other people say cannot be done.\"  - Walter Bagehot"
quoteArray[14]="\"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut.\"  - Albert Einstein"
quoteArray[15]="\"Success is the ability to go from one failure to another with no loss of enthusiasm.\"  - Sir Winston Churchill "
quoteArray[16]="\"Seek first to understand, then seek to be understood.\"  - Stephen R. Covey"
quoteArray[17]="\"Success is getting what you want; happiness is wanting what you get. \"  - Author Unknown"
quoteArray[18]="\"Positive thinking is contagious. People around you pick your mental moods and are effected accordingly. Think about happiness, good health and success, and you will cause people to like you and desire to help you, because they enjoy the vibrations that a positive mind emits. \"  - Remez Sasson "
quoteArray[19]="\"It is never too late to be what you might have been.\"  - George Eliot"
quoteArray[20]="\"If you can DREAM it, you can DO it.\"  - Walt Disney"
quoteArray[21]="\"Many of life's failures are people who did not realize how close they were to success when they gave up.\"  - Thomas Alva Edison"
quoteArray[22]="\"The dictionary is the only place that success comes before work. Hard work is the price we must pay for success.\"  - Vince Lombardi"
quoteArray[23]="\"This is not the end. It is not even the beginning of the end. But, it is, perhaps, the end of the beginning.\"  - Winston Churchill"
quoteArray[24]="\"No one can make you feel inferior without your first giving consent.\"  - Eleanor Roosevelt"
quoteArray[25]="\"Opportunity is missed by most because it is dressed in overalls and looks an awful like work.\"  - Thomas Alva Edison"
quoteArray[26]="\"Early to bed and early to rise, makes a man healthy, wealthy, and wise.\"  - Benjamin Franklin"
quoteArray[27]="\"Not everything that counts can be counted, and not everything that can be counted counts.\"  - Albert Einstein"
quoteArray[28]="\"When I was young, I said to God, God, tell me the mystery of the universe. But God answered, that knowledge is for me alone. So I said, God, tell me the mystery of the peanut. Then God said, well, George, that's more nearly your size.\"  - George Washington"
quoteArray[29]="\"I'd rather be a failure in something that I love than a success in something that I hate.  \"  - George Burns"
quoteArray[30]="\"I have missed more than 9000 shots in my career.  I have lost almost 300 games.  On 26 occassions I have been entrusted to take the game winning shot . . . and missed.  And I have failed over and over and over again in my life.  And that is why . . . I succeed.\"  - Michael Jordan"



quoteShowing=-1;

function nextQuote()
{
  // restart at 0 if done
  if (quoteShowing >= numQuotes) quoteShowing=-1;
  quoteShowing++;

  // assign the value in the textbox to the new quote
  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

function prevQuote()
{
  // restart at end if on 0
  if (quoteShowing <= 0) quoteShowing=numQuotes+1;
  quoteShowing--;

  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

function randQuote()
{ 
  // Make sure you don't show the same quote 2x in a row
  prevQuoteShowing = quoteShowing;
  while(quoteShowing == prevQuoteShowing)
    quoteShowing = Math.ceil(Math.random() * numQuotes);

  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

window.onload=randQuote
