

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	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(

	'All the World is indeed a stage and we are merely players, performers and portrayers, each anothers audience',
	'All the World is indeed a stage and we are merely players, performers and portrayers, each anothers audience...   - Neil Peart',
	'If you choose not to decide you still have made a choice. - Neil Peart',
	'Throw off those chains of reason and your prison disappears. - Neil Peart',
	'Does thou love life?  Then do not squander time, for that is the stuff life is made of. - Ben Franklin',
	'Im so evil and skanky, and I think Im kind of gay...  - Willow in BTVS',
	'Beer is living proof that God loves us and wants us to be happy. - Ben Franklin',
	'Those who give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Ben Franklin'
);


/*
	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);






