/* This JavaScript (Random Quotes) developed by Scott ClarkThe Source is available at http://www.clarksco.com/blog/Copyright 2005 Clark Consulting */// Math that sets the number of the quote to be displayedvar num_of_quotes = 14;quotes = Math.floor (num_of_quotes * Math.random());// Database of Quotesif (quotes==0) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Not getting what you want can be a wonderful stroke of luck!";}if (quotes==1) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Learn the rules so you know how to break them properly.";}if (quotes==2) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="When you realize that you've made a mistake, take immediate steps to correct it.";}if (quotes==3) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Don't let a little dispute injure a great relationship.";}if (quotes==4) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Follow the 3 R's: Respect for self, Respect for others, Responsibility for all your actions.";}if (quotes==5) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Great love and great achievements involve great risk.";}if (quotes==6) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Open your arms to change, but don't let go of your values.";}if (quotes==7) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Spend some time alone every day.";}if (quotes==8) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Silence is sometimes the best answer.";}if (quotes==9) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Live a good, honorable life.  Then when you get older and think back, you'll be able to enjoy it a second time.";}if (quotes==10) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="A loving atmosphere in your home is the foundation for your life.";}if (quotes==11) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="In disagreements with loved ones, deal only with the current situation.  Don't bring up the past.";}if (quotes==12) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Share your knowledge.  It's a way to achieve immortality.";}if (quotes==13) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Be gentle with the earth.";}if (quotes==14) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Once a year, go someplace you've never been before.";}if (quotes==15) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="The best relationship is one in which your love for each other exceeds your need for each other.";}if (quotes==16) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Judge your success by what you had to sacrifice in order to get it.";}if (quotes==17) {name="&mdash; Today's Instruction for Life, from the Dalai Lama";body="Approach love and cooking with reckless abandon!";}// Outputs the HTML to your web page.document.write(''+ body +'<br />');document.write('' + name + '');