function ShowDateTime(dateStyle)
{
	var today = new Date();
	var dStr = "";
	//alert(dateStyle);
	switch (dateStyle)
	{
		case 1:
			//dStr = today.toDateString();
			break;
		case 3:
			dStr = today.toLocaleString();
			break;
		case 4:
			//dStr = today.toLocaleTimeString();
			break;
		case 2:
		default:
			//dStr = today.toLocaleDateString();
			break;
	}
	
	document.write(dStr.substring(0,10));

}



function showImage()
{
	var imageDir = "images/";
	var weekdayImages = new Array("forest.jpg","forest3.jpg", "forest4.jpg","forest5.jpg","forest7.jpg","forest8.jpg","forest9.jpg");
	var today = new Date();
	document.write('<img border="0" src="' + imageDir + weekdayImages[today.getDay()] + '">');
}

function showArticle(section)
{
	
	if (section == 1)	 {
//	var Article1 = "<tr><td colspan=2><B>Deep down</B> </td></tr><tr><td><p>Deep down in your heart, do you feel that there must be something more to this life? Doesn't the best things that happen in your life just seem to wet your appetite to hint at something more grand and spectacular? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	var Article1 = "<tr><td colspan=2><B>Who Killed Jesus Christ?</B> </td></tr><tr><td><p>With the release of the new Mel Gibson movie The Passion of Christ we have been hearing a lot a controversy about the movie having anti-Semitic overtones. Is it true the Jews were responsible for the death of Jesus Christ? ... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=passion.html>More</a></td></tr>";

	var Article2 = "<tr><td colspan=2><B>What does the future hold ?</B> </td></tr><tr><td><p>The future and future events has always sparked an interest. Many people know that the Bible does foretell future events, what does the Bible say about the future...</td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=futureEvents.html>More</a></td></tr>";

	var Article3 = "<tr><td colspan=2><B>Deep down</B> </td></tr><tr><td><p>Deep down in your heart, do you feel that there must be something more to this life? Doesn't the best things that happen in your life just seem to wet your appetite to hint at something more grand and spectacular? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	var Article4 = "<tr><td colspan=2><B>Who Killed Jesus Christ?</B> </td></tr><tr><td><p>With the release of the new Mel Gibson movie The Passion of Christ we have been hearing a lot a controversy about the movie having anti-Semitic overtones. Is it true the Jews were responsible for the death of Jesus Christ? ... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=passion.html>More</a></td></tr>";

	var Article5 = "<tr><td colspan=2><B>What is stopping us ?</B> </td></tr><tr><td><p>I think we sometimes forget all the promises that God has for those who diligently serve Him and therefore we don't serve Him with a grateful heart. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=serving.html>More</a></td></tr>";

	var Article6 = "<tr><td colspan=2><B>Deep down</B> </td></tr><tr><td><p>Deep down in your heart, do you feel that there must be something more to this life? Doesn't the best things that happen in your life just seem to wet your appetite to hint at something more grand and spectacular? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	//var Article7 = "<tr><td colspan=2><B>California Wild fires</B> </td></tr><tr><td><p>California has been long known for its warm weather and beautiful beaches. The last few days, California has been on the national headlines for its wild fires... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=wildfires.html>More</a></td></tr>";

	var Article7 = "<tr><td colspan=2><B>Who Killed Jesus Christ?</B> </td></tr><tr><td><p>With the release of the new Mel Gibson movie The Passion of Christ we have been hearing a lot a controversy about the movie having anti-Semitic overtones. Is it true the Jews were responsible for the death of Jesus Christ? ... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=passion.html>More</a></td></tr>";

	}
	else if (section == 2)	 {

	var Article1 = "<tr><td colspan=2><B>You sure you're going to heaven?</B> </td></tr><tr><td><p>There are so many people today who say they are on the way to heaven. Jesus said there are only few who will find the way to life. Eternity is a long time it would be unwise to stand on that day before the Lord and find out that you had lived your life in vain. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=wiseAboutEternity.html>More</a></td></tr>";
	var Article3 = "<tr><td colspan=2><B>You sure you're going to heaven?</B> </td></tr><tr><td><p>There are so many people today who say they are on the way to heaven. Jesus said there are only few who will find the way to life. Eternity is a long time it would be unwise to stand on that day before the Lord and find out that you had lived your life in vain. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=wiseAboutEternity.html>More</a></td></tr>";
	
	var Article2 = "<tr><td colspan=2><B>Isn't Church attendance good enough ?</B></td></tr><tr><td><p>You might be a person who has been faithful in going church meetings regularly, serving in ministry, could it be possible that you are not going to heaven after all? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom><a href=preachGodsWord.html>More</a></td></tr>";
	var Article4 = "<tr><td colspan=2><B>Isn't Church attendance good enough ?</B></td></tr><tr><td><p>You might be a person who has been faithful in going church meetings regularly, serving in ministry, could it be possible that you are not going to heaven after all?</td></tr><tr><td colspan=2 nowrap align =right valign=bottom><a href=preachGodsWord.html>More</a></td></tr>";
	//var Article3 = "<tr><td colspan=2><B>God overlooks your sin?</B> </td></tr><tr><td><p>You have sin in your life and attend church to ease your conscience, the Jesus of the Bible said you He who sins is of the devil and He who does righteousness is righteous. Could you be following a different Jesus who is considerate towards your sin?</td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	var Article6 = "<tr><td colspan=2><B>Eternally secure, so you can now sin?</B> </td></tr><tr><td><p>You say once saved always saved and using it to justify the sin your in, the Bible says examine to see if you are in the faith (2 Corinthians 13:5) and warns us not to allow our hearts to be hardened by the deceitfulness of sin. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=preachGodsWord.html>More</a></td></tr>";

	//var Article5 = "<tr><td colspan=2><B>Jesus is coming back, how are you living?</B> </td></tr><tr><td><p>Jesus said the last days are going to be like the days of Noah, people are going to be living casual lives. Jesus spoke about the servants in his house that they should be awaiting his return and if they said in their heart he is going to tarry, He will come on a day they were not looking for him.</td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=serving.html>More</a></td></tr>";

	var Article7 = "<tr><td colspan=2><B>Are the messages only tickling your ears</B> </td></tr><tr><td><p>Don't preach on anything that offends the congregation, because then you will have less people who attend and less money for the building fund. Jesus loved sinners and exposed the empty religion which man used to cover His real need for the Savior. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=preachGodsWord.html>More</a></td></tr>";	
	var Article5 = "<tr><td colspan=2><B>Are the messages only tickling your ears</B> </td></tr><tr><td><p>Don't preach on anything that offends the congregation, because then you will have less people who attend and less money for the building fund. Jesus loved sinners and exposed the empty religion which man used to cover His real need for the Savior. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=preachGodsWord.html>More</a></td></tr>";	

	

	}
	else {
	//	var Article1 = "<tr><td colspan=2><B>Deep down</B> </td></tr><tr><td><p>Deep down in your heart, do you feel that there must be something more to this life? Doesn't the best things that happen in your life just seem to wet your appetite to hint at something more grand and spectacular? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	var Article1 = "<tr><td colspan=2><B>Who Killed Jesus Christ?</B> </td></tr><tr><td><p>With the release of the new Mel Gibson movie The Passion of Christ we have been hearing a lot a controversy about the movie having anti-Semitic overtones. Is it true the Jews were responsible for the death of Jesus Christ? ... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=passion.html>More</a></td></tr>";

	var Article2 = "<tr><td colspan=2><B>What does the future hold ?</B> </td></tr><tr><td><p>The future and future events has always sparked an interest. Many people know that the Bible does foretell future events, what does the Bible say about the future...</td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=futureEvents.html>More</a></td></tr>";

	var Article3 = "<tr><td colspan=2><B>Deep down</B> </td></tr><tr><td><p>Deep down in your heart, do you feel that there must be something more to this life? Doesn't the best things that happen in your life just seem to wet your appetite to hint at something more grand and spectacular? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	var Article4 = "<tr><td colspan=2><B>Who Killed Jesus Christ?</B> </td></tr><tr><td><p>With the release of the new Mel Gibson movie The Passion of Christ we have been hearing a lot a controversy about the movie having anti-Semitic overtones. Is it true the Jews were responsible for the death of Jesus Christ? ... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=passion.html>More</a></td></tr>";

	var Article5 = "<tr><td colspan=2><B>What is stopping us ?</B> </td></tr><tr><td><p>I think we sometimes forget all the promises that God has for those who diligently serve Him and therefore we don't serve Him with a grateful heart. </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=serving.html>More</a></td></tr>";

	var Article6 = "<tr><td colspan=2><B>Deep down</B> </td></tr><tr><td><p>Deep down in your heart, do you feel that there must be something more to this life? Doesn't the best things that happen in your life just seem to wet your appetite to hint at something more grand and spectacular? </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=deepdown.html>More</a></td></tr>";

	//var Article7 = "<tr><td colspan=2><B>California Wild fires</B> </td></tr><tr><td><p>California has been long known for its warm weather and beautiful beaches. The last few days, California has been on the national headlines for its wild fires... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=wildfires.html>More</a></td></tr>";

	var Article7 = "<tr><td colspan=2><B>Who Killed Jesus Christ?</B> </td></tr><tr><td><p>With the release of the new Mel Gibson movie The Passion of Christ we have been hearing a lot a controversy about the movie having anti-Semitic overtones. Is it true the Jews were responsible for the death of Jesus Christ? ... </td></tr><tr><td colspan=2 nowrap align =right valign=bottom>... <a href=passion.html>More</a></td></tr>";

	}

		
	var weekdayArticles = new Array(Article1, Article2, Article3, Article4, Article5, Article6, Article7);
	
	var today = new Date();
	document.write(weekdayArticles[today.getDay()]);
	
}

function URLencode(sStr) {
    return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\//g,'%2F');
  }


function viewPage(url)
{
	var sFeatures
	sFeatures = "height=" + (screen.availHeight - 150) + ",width=" + (screen.availWidth - 50) + ",left=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=1"
	
	url = "http://www.word4life.com/redirect.php?redirectURL=" + URLencode(url);
	win = window.open(url, "win", sFeatures);

}


function viewPageInSmallWindow(url)
{
	var sFeatures
	sFeatures = "height=" + (screen.availHeight - 300) + ",width=" + (screen.availWidth - 250) + ",left=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=1"
	
	url = "http://www.word4life.com/redirect.php?redirectURL=" + URLencode(url);
	win = window.open(url, "win", sFeatures);

}

function viewPageInSameWindow(url)
{
	var sFeatures
	sFeatures = "height=" + (screen.availHeight - 150) + ",width=" + (screen.availWidth - 50) + ",left=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=1"
	
	url = "http://www.word4life.com/redirect.php?redirectURL=" + URLencode(url);
	window.location.href = url;

}

