

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	ponder.js
	Code was created by C. Eton. Statement author unknown.  
 
 	Only 1 item need to be edited:

	1.  The Statements array variable.

*///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// List the statements to display.  Add statements as necessary.  


var Statements = new Array(

	'Order is the shape upon which beauty depends. 	~Pearl S. Buck ', 
	'Until you make peace with who you are, you’ll never be content with what you have.      ~Doris Mortman ',
	'When friends enter a home, they sense its personality and character, the family’s style of living-these elements make a house come alive with a sense of identity, a sense of energy, enthusiasm, and warmth, declaring, “This is who we are; this is how we live”        ~Ralph Lauren ',
	'My life will always have dirty dishes. If this sink can become a place of contemplation, let me learn constancy here.    ~Gunilla Norris ',
	'If a home doesn’t make sense, nothing else does.      ~Henrietta Ripperger ',
	'Why do we love certain houses, and why do they seem to love us? It is the warmth of our individual hearts reflected in our surroundings.     ~T.H. Robsjohn-Gibbings ',
	'What a gift of grace to be able to take the chaos from within and from it create some semblance of order.         ~Katherine Paterson ',
	'House ordering is my prayer, and when I have finished my prayer is answered. And bending, stooping, scrubbing purifies my body as prayer doesn’t.       ~Jessamyn West ',
	'A confused mind cannot direct deft hands and what is more confusing than a cluttered, disorderly place to work? What is more uninviting, too? The grateful appearance of order-this is the one important way women judge each other’s housekeeping. And every efficient housekeeper knows that in no room does it count for more than in the kitchen.       ~Woman’s Home Companion, August 1924 ',
	'A schedule defends from chaos and whim. It is the net for catching days…A schedule is a mock of reason and order-willed, faked, and so brought into being.       ~Annie Dillard ',
	'Home is the heart of life…Home is where we feel at ease, where we belong, where we can create surroundings that reflect our tastes and pleasures…Making a home is a form of creativity open to everyone.       ~Terence Conran ',
	'The conflict between what one is and who one is expected to be touches all of us. And sometimes, rather than reach for what one could be, we choose the comfort of the failed role, preferring to be the victim of circumstance, the person who didn’t have a chance.     ~Merle Shain ',
	'To be happy at home is the ultimate result of all ambition.     ~Samuel Johnson ',
	'We must be willing to get rid of the life we’ve planned, so as to have the life that is waiting for us.      ~Joseph Campbell ',
	'Three Rules of Work: Out of clutter find simplicity  From discord find harmony  In the middle of difficulty lies opportunity     ~Albert Einstein ',
	'Amidst all the clutter, beyond all the obstacles, aside from all the static, are the goals set. Put your head down, do the best job possible, let the flak pass, and work towards those goals.    ~Donald Rumsfeld ',
	'The ability to simplify means to eliminate the unnecessary so that the necessary may speak.     ~Hans Hofmann ',
	'Simplicity is making the journey of this life with just baggage enough.     ~Author Unknown ',
	'Everything we possess that is not necessary for life or happiness becomes a burden, and scarcely a day passes that we do not add to it.     ~Robert Brault ',
	'Live Simply that others might Simply Live.     ~Elizabeth Seaton ',
	'Simplicity is the ultimate sophistication.     ~Leonardo Da Vinci ',
	'Who is rich? He who rejoices in his portion.     ~The Talmud ',
	'You have succeeded in life when all you want is only what you really need.      ~Vernon Howard ',
	'We don’t need to increase our good nearly as much as we need to scale down our wants. Not wanting something is as good as possessing it.     ~Donald Horban ',
	'Reduce the complexity of life by eliminating the needless wants of life, and the labors of life reduce themselves.     ~Edwin Way Teale ',
	'You will achieve grand dream, a day at a time, so set goals for each day;not long and difficult projects, but chores that will take you, step by step, toward your rainbow. Write them down, if you must, but limit your list so that you won’t have to drag today’s undone matters into tomorrow. Remember that you cannot build your pyramid in twenty-four hours. Be patient. Never allow your day to become so cluttered that you neglect your most important goal: to do the best you can, enjoy this day, and rest satisfied with what you have accomplished.       ~Og Mandino ',
	'In order to seek ones own direction, one must simplify the mechanics of ordinary life    ~Plato ',
	'The business is not to remake myself, but make the absolute best of what God made   ~ Robert Browning ',
	'Write it down, when I have perished:    Here is everything I’ve cherished;   That these walls should glow with beauty   Spurred my lagging soul to duty;  That there should be gladness here  Kept me toiling, year by year…  Every thought and every act  Were to keep this home intact.         ~Edgar Guest'
);


/*
	GetStatement( ) is the primary function.  It assumes the following:
	
	1.  The HTML file contains a form named "statementform".
	2.  Within the statement form, there is a textarea or textbox named "statement".               */

function GetStatement(outputtype) //modified by javascriptkit.com to either write out result or set innerHTML prop
{
	if(++Number > Statements.length - 1) Number = 0;
	if (outputtype==0)
	document.write(Statements[Number])
	else if (document.getElementById)
	document.getElementById("ponder").innerHTML=Statements[Number];
}


//  The GetRandomNumber( ) function extracts a random number within a given range.


function GetRandomNumber(lbound, ubound) 
{
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}


// The Number variable keeps track of which statement to display.  It will start at a random point.                

var Number = GetRandomNumber(0, Statements.length - 1);






