// JavaScript Document
DocDom = (document.getElementById?true:false);
DocAll = (document.all?true:false);
DocStr=''
if (DocAll) DocStr="return document.all[id]"
if (DocDom) DocStr="return document.getElementById(id)"
GetRef=new Function("id", DocStr)
if (DocStr=='') { DynWrite=new Function("return false") } else {
  DynWrite=new Function("id", "S", "GetRef(id).innerHTML=S; return true") //This function writes the text to the selected div
}
function newQuote() {
 var quotearray = new Array(15); //To add new quotes, change the size of the array
 quotearray[0] = "<q>Lengthen your stride.<\/q><br \/>Spencer W. Kimball";
  quotearray[1] = "<q>By making and keeping promises to others and achieving our set goals, little by little, our honor becomes greater than our moods.<\/q><br \/>Stephen R. Covey";
   quotearray[2] = "<q>There's no such thing as a hero-only ordinary people asked extraordinary things in terrible circumstances-and delivering.<\/q><br \/>Timothy Mo";
    quotearray[3] = "<q>Keep away from people who try to belittle your ambitions.  Small people always do that, but the really great make you feel that you too, can become great.<\/q><br \/>Mark Twain";
	 quotearray[4] = "<q>That which we persist in doing becomes easier for us to do. Not that the nature of the thing itself has changed but our power to do it is increased.<\/q><br \/>Ralph Waldo Emerson";
	  quotearray[5] = "<q>Better keep yourself clean and bright; you are the window through which you must see the world.<\/q><br \/>George Bernard Shaw";
	   quotearray[6] = "<q>by small and simple things great things are brought to pass.<\/q><br \/> (Alma 37:6)";
	    quotearray[7] = "<q>Brave men are a city's strongest tower of defense.<\/q><br \/>Alcaeus";
		 quotearray[8] = "<q>Let us have faith that right makes might; and in that faith let us to the end dare to do our duty as we understand it.<\/q><br \/>Abraham Lincoln";
		  quotearray[9] = "<q>He that would govern others, first should be the master of himself.<\/q><br \/>Philip Massinger";
		  quotearray[10] = "<q>Few things can help an individual more than to place responsibility on him, and to let him know that you trust him.<\/q><br \/>Booker T Washington";
		  quotearray[11] = "<q>If you fail to plan you plan to fail. <\/q><br \/>(Old Proverb)";
		  quotearray[12] = "<q>It is true intelligence for a man to take a subject that is mysterious and great in itself, and to unfold and simplify it so that a child can understand it.<\/q><br \/>John Taylor";
		  quotearray[13] = "<q>When performance is measured, performance improves. When performance is measured and reported, the rate of improvement accelerates.<\/q><br \/>Thomas S. Monson";
		  quotearray[14] = "<q>You cannot accomplish a worthy end with an unworthy mean. Ends and means are absolutely inseparable.<\/q><br \/>Stephen R. Covey";
 var number = Math.floor(Math.random() * quotearray.length); //This randomly selects a number between 0-14 to use in the array; if you add quotes, you'll have to change the numbering system.

//For debugging purposes on the display of text in a specific quote
//number=2
 DynWrite('flash', quotearray[number]);  
}