

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	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(


'If it be so, our God whom we serve <i>is able</i> to deliver us from the furnace of blazing fire; and He will deliver us out of your hand, O king.  (Daniel 3:17)',

'And now I commend you to God and to the word of His grace, which <i>is able</i> to build you up and to give you the inheritance among all those who are sanctified.  (Acts 20:32)',

'And God <i>is able</i> to make all grace abound to you, so that always having all sufficiency in everything, you may have an abundance for every good deed.  (2 Corinthians 9:8)',

'Therefore He <i>is able</i> also to save forever those who draw near to God through Him, since He always lives to make intercession for them.  (Hebrews 7:25)',

'For since He Himself was tempted in that which He has suffered, He <i>is able</i> to come to the aid of those who are tempted.  (Hebrews 2:18)',

'Now to Him who <i>is able</i> to establish you according to my gospel and the preaching of Jesus Christ, according to the revelation of the mystery which has been kept secret for long ages past.  (Romans 16:25)',

'Now to Him who <i>is able</i> to do far more abundantly beyond all that we ask or think, according to the power that works within us.  (Ephesians 3:20)',

'Now to Him who <i>is able</i> to keep you from stumbling, and to make you stand in the presence of His glory blameless with great joy.  (Jude 1:24)',

'If it be so, our God whom we serve <i>is able</i> to deliver us from the furnace of blazing fire; and He will deliver us out of your hand, O king.  (Daniel 3:17)',

'And now I commend you to God and to the word of His grace, which <i>is able</i> to build you up and to give you the inheritance among all those who are sanctified.  (Acts 20:32)',

'And God <i>is able</i> to make all grace abound to you, so that always having all sufficiency in everything, you may have an abundance for every good deed.  (2 Corinthians 9:8)',

'Therefore He <i>is able</i> also to save forever those who draw near to God through Him, since He always lives to make intercession for them.  (Hebrews 7:25)',

'For since He Himself was tempted in that which He has suffered, He <i>is able</i> to come to the aid of those who are tempted.  (Hebrews 2:18)',

'Now to Him who <i>is able</i> to establish you according to my gospel and the preaching of Jesus Christ, according to the revelation of the mystery which has been kept secret for long ages past.  (Romans 16:25)',

'Now to Him who <i>is able</i> to do far more abundantly beyond all that we ask or think, according to the power that works within us.  (Ephesians 3:20)',

'Now to Him who <i>is able</i> to keep you from stumbling, and to make you stand in the presence of His glory blameless with great joy.  (Jude 1:24)'


);


/*
	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);







