
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function getaQuote()
{
 var maxQuotes=10;
 var whichQuote=get_random(maxQuotes);
 whichQuote--;

var quote=new Array(maxQuotes)
   quote[0]="You Took My Dogs!?! - Justin Timberlake, MTV's Punked!";
   quote[1]="Did it ever occur to you that there's more to life than just being really, really ridiculously good-looking? - Derek Zoolander";
   quote[2]="A Life!?! Where do I download one of those?";   
   quote[3]="A Life!?! Where do I download one of those?";
   quote[4]="Don't worry, Miss Bahmra. Our designs will make even these little mosquito bites look like juicy, juicy mangos! - Bend it like Beckham";
   quote[5]="With great power comes great responsibilty - Spider-Man";
   quote[6]="It is a truth universally acknowledged that when one part of your life starts going okay, another falls spectacularly to pieces.  - Bridget Jones";
   quote[7]="It is a strange fate that we should suffer so much fear and doubt over so small a thing. Such a little thing - Boromir, Lord Of The Rings";
   quote[8]="Even the smallest person can change the course of the future - Galadriel, Lord Of The Rings";
   quote[9]="What's taters, precious? - Gollum, Lord Of The Rings";

document.write(quote[whichQuote]);

}

getaQuote();


