

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	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(

	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">There is only one Christ, Jesus, one faith. All else is a dispute over trifles.</p>   ~ Elizabeth I, Queen of England ', 
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">I felt I did trust in Christ, Christ alone, for salvation, and an assurance was given me that He had taken away my sins, even mine, and saved me from the law of sin and death.</p>   ~ John Wesley',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">Jesus Christ did not say, ‘Go into all the world and tell the world that it is quite right.’ The Gospel is something completely different. In fact, it is directly opposed to the world.</p>   ~ C.S. Lewis - Interview with Sherwood Eliot Wirt on CBN',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">If there is any meaning in the life of Jesus of Nazareth, it is this:  that there is a God who created us, and who loves us so much that he would stop at nothing to bring us to Him.</p> ~ Rich Mullins',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">Grace defies reason and logic. Love interrupts, if you like, the consequences of your actions, which in my case is very good news indeed, because I`ve done a lot of stupid stuff. . . . . It doesn`t excuse my mistakes, but I`m holding out for Grace. I`m holding out that Jesus took my sins onto the Cross, because I know who I am, and I hope I don`t have to depend on my own religiosity.</p>  ~ Bono - Lead Singer for U2 - in an interview with Christianity Today magazine',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">Everywhere I go and everything I do I want people to know that it is Jesus who is in control of my life. With Him in control, I know I will never find myself on the wrong path again.</p>  ~ John Kitna - personal statement of faith at TheGoal.com',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">God says that there is only one way and I didn`t believe that, myself, until I tried it and his spirit came into my life and into my heart, and confirmed that the Jesus Christ truth was real. The choice is yours, but until you become willing to at least take the step of faith and try it, you`re never going to know if it`s real or not. . . . . God is so big and so powerful. He wants you to challenge him. He`s saying "Come to me."</p>  ~  Stephen Baldwin - interview with  PR.com',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">No man ever loved like Jesus. He taught the blind to see and the dumb to speak. He died on the cross to save us. He bore our sins. And now God says, "Because He did, I can forgive you."</p>  ~ Billy Graham',
	'<p align="justify"><font face="Arial" color="#99FFCC"><span style="font-size:11pt;">Jesus is the God whom we can approach without pride and before whom we can humble ourselves without despair.</p>  ~ Blaise Pascal'
);


/*
	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);






