var numOfQuotes = 7;
function quote() {
var quote = new Array(numOfQuotes + 1);
quote[0]="One is not wise because one speaks much. He who is peaceable, friendly and fearless is called wise.";
quote[1]="A fool who knows his foolishness is wise at least to that extent, but fool who thinks himself wise is called a fool indeed.";
quote[2]="Those who know the essential to be essential and the unessential to be unessential, dwelling in right thoughts, do arrive at the essential.";
quote[3]="Not by passing arbitrary judgements does a man become just; a wise man is he who investigates both right and wrong.";
quote[4]="Not by shaven head does a man who is indisciplined and untruthful become a monk. How can he who is full of desire and greed be a monk?";
quote[5]="He who wholly subdues evil both small and great is called a monk, because he had overcome all evil";
quote[6]="Not by observing silence does one become a sage, if he be foolish and ignorant. But that man is wise who, as if holding a balance-scale, accepts only the good.";
quote[7]="He is not noble who injures living beings. He is called noble because he is harmless towards all living beings";

indxOfQuote = rndInteger();
strQuote = quote[indxOfQuote];
return strQuote + "<h4>Dhammapada</h4>";
} 

function rndInteger() {
var rndNumber = -1;
while (rndNumber <0 || rndNumber > numOfQuotes || isNaN(rndNumber)) {
     rndNumber = parseInt(Math.random() * (numOfQuotes + 1));
     }
return rndNumber;
}


