﻿//store the quotations in arrays
quotes = new Array(17);
authors = new Array(17);
quotes[0] = "Children love and want to be loved and they very much prefer the joy of accomplishment to the triumph of hateful failure. Do not mistake a child for his symptom.";
authors[0] = "Erik Erikson";
quotes[1] = "The greater the feeling of inferiority that has been experienced, the more powerful is the urge to conquest and the more violent the emotional agitation.";
authors[1] = "Alfred Adler";
quotes[2] = "Meanings are not determined by situations, but we determine ourselves by the meanings we give to situations.";
authors[2] = "Alfred Adler";
quotes[3] = "In order to succeed, people need a sense of self-efficacy, to struggle together with resilience to meet the inevitable obstacles and inequities of life.";
authors[3] = "Albert Bandura";
quotes[4] = "People who believe they have the power to exercise some measure of control over their lives are healthier, more effective and more successful than those who lack faith in their ability to effect changes in their lives.";
authors[4] = "Albert Bandura";
quotes[5] = "For the meaning of life differs from man to man, from day to day and from hour to hour. What matters, therefore, is not the meaning of life in general but rather the specific meaning of a person's life at a given moment.";
authors[5] = "Viktor Frankl";
quotes[6] = "A human being is a deciding being.";
authors[6] = "Viktor Frankl";
quotes[7] = "Everyone has his own specific vocation or mission in life; everyone must carry out a concrete assignment that demands fulfillment. ";
authors[7] = "Viktor Frankl";
quotes[8] = "I believe that the brain has evolved over millions of years to be responsive to different kinds of content in the world. Language content, musical content, spatial content, numerical content, etc.";
authors[8] = "Howard Gardner";
quotes[9] = "All the works of man have their origin in creative fantasy. What right have we then to depreciate imagination.";
authors[9] = "Carl Jung";
quotes[10] = "Children are educated by what the grown-up is and not by his talk.";
authors[10] = "Carl Jung";
quotes[11] = "Man needs difficulties; they are necessary for health.";
authors[11] = "Carl Jung";
quotes[12] = "Nobody, as long as he moves about among the chaotic currents of life, is without trouble.";
authors[12] = "Carl Jung";
quotes[13] = "Without this playing with fantasy no creative work has ever yet come to birth. The debt we owe to the play of imagination is incalculable.";
authors[13] = "Carl Jung";
quotes[14] = "The man who promises everything is sure to fulfil nothing, and everyone who promises too much is in danger of using evil means in order to carry out his promises, and is already on the road to perdition.";
authors[14] = "Carl Jung";
quotes[15] = "Man needs difficulties; they are necessary for health.";
authors[15] = "Carl Jung";
quotes[16] = "A successful individual typically sets his next goal somewhat but not too much above his last achievement. In this way he steadily raises his level of aspiration.";
authors[16] = "Kurt Lewin";



//calculate a random index
index = Math.floor(Math.random() * quotes.length);

//display the quotation
document.write("<DL>\n");
document.write("<DT>" + "\"" + quotes[index] + "\"\n");
document.write("<DD>" + "-- " + authors[index] + "\n");
document.write("</DL>\n");

//done