// JavaScript Document
function mchoice(mood){
	var y = document.getElementById("mood_text")
	var happytxt = "<p> James talks about what to do when one is happy: &quot; Is anyone cheerful? Let him sing songs of praise.&quot;" +
	"&nbsp;Our happiness should always be followed by praise to our Maker in song, prayer, giving, and thanksgiving.</p>"
	
	var worriedtxt ="<p>Christ addresses this issue in Matthew 6: </p>" +
	"<p>&quot;Therefore I tell you, do not worry about your life, what you will eat or drink; or about your body, what you will wear. Is not " +
	"life more important than food, and the body more important than clothes? Look at the birds of the air; they do not sow or reap " +
	"or store away in barns, and yet your heavenly Father feeds them. Are you not much more valuable than they? Who of you by " +
	"worrying can add a single hour to his life?&quot;</p> " +
	"<p>Unfortunately, this life seems to be filled with worry and anxiety.  Paul says in Phillipians 4:13, &quot;I can do " +
	"everything through Christ who strengthens me.</p>"

	var sadtxt = "Unfortunately, sorrow is common in this life.  Jesus gives us hope in..."
	
	var angrytxt = "<p>Sometimes we are justified in our anger.  However, this never gives us the right to sin against God's will. " +
	"Romans 12:19 says</p> <p> &quot;Never take your own revenge, beloved, but leave room for the wrath of God, for it is written, " +
	"&quot;VENGEANCE IS MINE, I WILL REPAY,&quot; says the Lord.&quot;</p>  We can take comfort in the fact that if we live " +
	"according to God's will justice will be administered in the end."
	
	y.style.visibility = "visible"
	
	switch(mood)
		{
		case "happy":
		  y.innerHTML = happytxt
		  break    
		case "worried":
		  y.innerHTML = worriedtxt
		  break
		case "sad":
		  y.innerHTML = sadtxt
		  break
		case "angry":
		  y.innerHTML = angrytxt
		  break
		case "frightened":
		  y.innerHTML = "Frightened Test"
		  break
		case "choose":
			document.location.reload()
		}
}

function icealert()
{
	alert("If you need immediate assistance you can call: \n\n\tForrest Bacon (555) 555-5555 \n\n\tWendell Holland (555) 555-5555")
}