<!--
// hide script from old browsers

function WriteDate(){
    var today = new Date();
    if ( today.getMinutes() < 10 ) { pad = "0"; }
    else { pad = ""; }
    
    var string="";

    if((today.getHours() < 12) && (today.getHours() >= 6))
    { string += "Good Morning!!<br>"; }
    else if((today.getHours() >= 12) && (today.getHours() < 18))
    { string += "Good Afternoon!!<br>"; }
    else if((today.getHours() >= 18) && (today.getHours() <= 23))
    { string += "Good Evening!!<br>"; }
    else if((today.getHours() >= 0) && (today.getHours() < 4))
    { string += "You're up late today!!<br>"; }
    else if((today.getHours() >= 4) && (today.getHours() < 6))
    { string += "Wow! You are up early!!<br>"; }

    string += "Time: "+ today.getHours() +":"+ pad + today.getMinutes() +"<br>"
        +"Date: "+ (today.getMonth()+1) +"/"+ today.getDate()
        +"/"+ today.getYear() +"<br>";

    return string;
}

function WriteQuote() {
//store the quotations in arrays
    var quotes  = new Array(26);
    var authors = new Array(26);

quotes[0] = "And we know that in all things God works for the good of those who love Him, who have been called according to His purpose.";
authors[0] = "Romans 8:28";

quotes[1] = "Do all things without murmurings and disputings.";
authors[1] = "Philipians 2:14";

quotes[2] = "But godliness with contentment is great gain.";
authors[2] = "I Timothy 6:6";

quotes[3] = "Thou wilt show me the path of life. In thy presence is fullness of joy.  At thy right hand there are pleasures forevermore."; 
authors[3] = "Psalm 16:11";

quotes[4] = "For God so loved the world that He gave His only begotten son, that whosoever believeth in Him should not perish but have everlasting life.";
authors[4] = "John 3:16";

quotes[5] = "Finally, whatever is true, whatever is noble, whatever is right, whatever is pure, whatever is lovely, whatever is admirable - if anything is excellent or praiseworthy - think about such things.";
authors[5] = "Philippians 4:8";

quotes[6] = "Be still and know that I am God.";
authors[6] = "Psalm 46:10";

quotes[7] = "Study to shew thyself approved unto God, a workman that needeth not to be ashamed, rightly dividing the word of truth.";
authors[7] = "II Timothy 2:15";

quotes[8] = "Let us therefore come boldly unto the throne of grace, that we may obtain mercy, and find grace to help in time of need.";
authors[8] = "Hebrews 4:16";

quotes[9] = "I will turn their mourning into gladness. I will give them comfort and joy instead of sorrow.";
authors[9] = "Jeremiah 31:13";

quotes[10] = "I am crucified with Christ: nevertheless I live; yet not I, but Christ liveth in me: and the life which I now live in the flesh I live by the faith of the Son of God, who loved me and gave Himself for me.";
authors[10] = "Galatians 2:20";

quotes[11] = "Do nothing out of selfish ambition or vain conceit, but in humility consider others better than yourselves.";
authors[11] = "Philippians 2:3";

quotes[12] = "But my God shall supply all your needs according to His riches in glory by Christ Jesus.";
authors[12] = "Philippians 4:19";

quotes[13] = "Wait on the Lord:  be of good courage, and He shall strengthen thine heart:  wait, I say, on the Lord.";
authors[13] = "Psalm 27:14";

quotes[14] = "Know ye that the Lord He is God:  it is He that hath made us, and not we ourselves; we are His people, and the sheep of His pasture.";
authors[14] = "Psalm 100:3";

quotes[15] = "Fear thou not; for I am with thee:  be not dismayed; for I am thy God:  I will strengthen thee; yea, I will  help thee; yea, I will uphold thee with the right hand of my righteousness.";
authors[15] = "Isaiah 41:10";

quotes[16] = "Cast all you anxieties on Him, for He cares for you.";
authors[16] = "1 Peter 5:7";

quotes[17] = "The fear of the Lord is the beginning of knowledge.";
authors[17] = "Proverbs 1:7a";

quotes[18] = "Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge Him, and He shall make your paths straight";
authors[18] = "Proverbs 3:5,6";

quotes[19] = "God has made everything beautiful in its time; also He has put eternity into the mind of man, but he cannot find out what God has done from the beginning to the end.";
authors[19] = "Ecclesiastes 3:11";

quotes[20] = "Cast your bread upon the waters, For you will find it after many days.";
authors[20] = "Ecclesiastes 11:1";

quotes[21] = "Now faith is being sure of what we hope for, and certain of what we do not see.";
authors[21] = "Hebrews 11:1";

quotes[22] = "If we confess our sins, He is faithful and just to forgive us our sins and to cleanse us from all unrighteousness.";
authors[22] = "1 John 1:9";

quotes[23] = "Being confident of this very thing, that He who has begun a good work in you will complete it until the day of Jesus Christ.";
authors[23] = "Philippians 1:6";

quotes[24] = "Be anxious for nothing, but in everything by prayer and supplication, with thanksgiving, let your requests be made known to God.";
authors[24] = "Philippians 4:6";

quotes[25] = "He has shown you, O man, what is good; And what does the Lord require of you but to do justly, To love mercy, And to walk humbly with your God?";
authors[25] = "Micah 6:8";

quotes[26] = "For this reason I kneel before the Father, from whom his whole family in heaven and on earth derive its name.  I pray that out of His glorious riches He may strengthen you with power through His Spirit in your inner being, so that Christ may dwell in your hearts through faith.  And I pray that you, being rooted and established in love, may have power, together with all the saints, to grasp how wide and long and high and deep is the love of Christ, and to know this love that surpasses all knowledge - that you may be filled to the measure of all the fullness of God.";
authors[26] = "Ephesians 3:14-19";


//calculate a random index
    var index = Math.floor(Math.random() * quotes.length);
    var string = "";

//display the quotation
    string += "\"" + quotes[index] + "\"<br>" + "-- " + authors[index];
    return string;
}

// end hiding contents 
// -->

