
numQuotes=30;
quoteArray = new Array(numQuotes);
quoteArray[0]="\"No tears in the writer, no tears in the reader.\"  - Robert Frost";
quoteArray[1]="\"The two most engaging powers of an author are . . to make new things familiar, and familiar things new.\"  - Samuel Johnson"
quoteArray[2]="\"A blank piece of paper is God’s way of telling us just how hard it is to be God.\"  - Sidney Sheldon"
quoteArray[3]="\"The reason one writes isn’t the fact that he wants to say something.  He writes because he has something to say.\"  - F. Scott Fitzgerald"
quoteArray[4]="\"All that we are, is the result of what we have thought.  The mind is everything.  What we think, we become.\"  - Buddha"
quoteArray[5]="\"Imagination is more important than knowledge.\"  - Albert Einstein"
quoteArray[6]="\"Whatever the mind of man can conceive, and believe, it CAN achieve.\"  - Napoleon Hill" 
quoteArray[7]="\"All that is needed for evil to succeed is for good men to do nothing.\" - Unknown"
quoteArray[8]="\"When you start writing you're 98% pure writer and 2% critic. After you've written for a length of time, you've learned a great deal about your craft, and you've become 2% pure writer and 98% critic. It's like writing uphill. \" - David Westheimer "
quoteArray[9]="\"Writing became such a process of discovery that I couldn't wait to get to work in the morning: I wanted to know what I was going to say\"  - Sharon O'Brien "
quoteArray[10]="\"Obstacles are those frightful things you see when you take your eyes off your goal. \"  - Henry Ford "
quoteArray[11]="\"Get your facts first, and then you can distort 'em as much as you please. \"  - Mark Twain "
quoteArray[12]="\"When you take stuff from one writer, it's plagiarism. But when you take it from many writers, it's research. \" - William Mizner "
quoteArray[13]="\"Write about what you know.  Write about what you see.  Write about what you feel.  But not necessarily in that order.\" -Tedric Garrison"
quoteArray[14]="\"The mind can proceed only so far upon what it knows and can prove. There comes a point where the mind takes a higher plane of knowledge, but can never prove how it got there. All great discoveries have involved such a leap. \" - Albert Einstein "
quoteArray[15]="\"How do I know what I think until I see what I have to say? \"  - E. M. Forster "
quoteArray[16]="\"I find that the harder I work, the more luck I seem to have. \"  - Thomas Jefferson "
quoteArray[17]="\"The faster I write the better my output. If I'm going slow, I'm in trouble. It means I'm pushing the words instead of being pulled by them. \"  - Raymond Chandler "
quoteArray[18]="\"If the doctor told me I had six minutes to live, I'd type a little faster. \" - Isaac Asimov "
quoteArray[19]="\"Writers seldom write the things they think. They simply write the things they think other folks think they think. \"  - Elbert Hubbard "
quoteArray[20]="\"Reality leaves a lot to the imagination. \"  - John Lennon "
quoteArray[21]="\"The reason 99% of all stories written are not bought by editors is very simple. Editors never buy manuscripts that are left on the closet shelf at home. \"  - John Campbell "
quoteArray[22]="\"First, find out what your hero wants. Then follow him and see where he takes you.\"  - Ray Bradbury "
quoteArray[23]="\"You are a bundle of mysteries. Finding and conquering yourself is a lifetime task. Explore yourself! There is power in you - the power to change yourself and to change the world; the power to create dreams; the power to inspire and serve. \"  - Wilfred Peterson "
quoteArray[24]="\"It is not because things are difficult that we do not dare; it is because we do not dare that they are difficult. \"  - Seneca"
quoteArray[25]="\"I always write about my own experiences, whether I've had them or not.\"  - Ron Carlson "
quoteArray[26]="\"I hear and I forget; I see and I remember; I write and I understand.\"  - Chinese Proverb   "
quoteArray[27]="\"Books aren't written -- they're rewritten. Including your own. It is one of the hardest things to accept, especially after the seventh rewrite hasn't quite done it. \"  - Michael Crichton "
quoteArray[28]="\"Being a writer means having homework for the rest of your life. \"  - Lawrence Kasdan "
quoteArray[29]="\"How vain it is to sit down to write if you have not yet stood up to live?\"  - Henry David Thoreau "
quoteArray[30]="\"I hate writing; I love having written. \"  - Dorothy Parker"



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
