function get_random(maxNum)
{
 var ranNum= Math.floor(Math.random()*(maxNum));
 return ranNum;
}

function getaQuote()
{
  if (document.getElementById && document.createTextNode) 
  {
	  
     var quote=new Array()
       quote[0]="All's fair in love and war.";
       quote[1]="We hurt the people we love the most.";
       quote[2]="Playtime is over.";
       quote[3]="No pain, no gain.";
       quote[4]="You have to be cruel to be kind.";
       quote[5]="Take a long walk off a short pier.";
       quote[6]="Take a short trip down a long flight of stairs.";
       quote[7]="The world was not built on good intentions.";
       quote[8]="Fire and brimstone, plague and pestilence.";
       quote[9]="If you have to ask, you'll never know.";
       quote[10]="Do as I say, not as I do.";
       quote[11]="Damned if you do, damned if you don't.";
       quote[12]="You can't always get what you want.";
       quote[13]="There is nothing to fear but fear itself.";
       quote[14]="Speak loudly and carry a small stick.";
       quote[15]="If you can't beat 'em, join 'em.";
       quote[16]="All work and no play makes Jack a dull boy.";
       quote[17]="Misery loves company.";
       quote[18]="There's no defense like offense.";
       quote[19]="Every man for himself.";
       quote[20]="Use people before they use you.";
       quote[21]="Give them an inch and they will take a mile.";
       quote[22]="Let them eat cake.";
       quote[23]="Cry me a river.";
       quote[24]="When in Rome, do as the Romans do.";
       quote[25]="Winning isn't everything; it's the only thing.";
       quote[26]="How do you like them apples?";
       quote[27]="Give 'em a taste of their own medicine.";
       quote[28]="When it rains, it pours.";
       quote[29]="That's the way the cookie crumbles.";
       quote[30]="To the victor goes the spoils.";
       quote[31]="Winning isn't everything; it's the only thing.";
       quote[32]="It's a dog eat dog world.";
       quote[33]="Swallow your pride.";
       quote[34]="What goes around comes around.";
       quote[35]="Fake it 'til you make it.";
       quote[36]="No soup for you.";
       quote[37]="There's no rest for the wicked.";
       quote[38]="Everyone's doing it.";

	 var whichQuote=get_random(quote.length);
	 
	var thequote = document.getElementById("my_quote");
    thequote.innerHTML = quote[whichQuote];
  }
} 

getaQuote();