// JavaScript Document

var now = new Date();

//this routine can be used to show error messages, 
function errWindow(errMsg,location,lineNum) {
	debugWin = window.open ("","debugwin","height=200,width=300,resize=yes");
	debugWin.document.write("<H2>There was an error at line " + lineNum);
	debugWin.document.write("<br>The error was: " + errMsg)
	debugWin.document.close();
	return true;
}

function makeDaysInYearArray() {
   this.length=12;
   this[1] = 0; this[2] = 31; this[3] = 59; this[4] = 90;
   this[5] = 120; this[6] = 151; this[7] = 181; this[8] = 212;
   this[9] = 243; this[10] = 273; this[11] = 304; this[12] = 334;
   return this;
}
function makeDayArray() {
    this.length=7;
    this[1] = "Sunday";  this[2] = "Monday";  this[3] = "Tuesday";
    this[4] = "Wednesday";  this[5] = "Thursday";  this[6] = "Friday";
    this[7] = "Saturday";
    return this;
}

function makeMonthArray() {
    this.length=12;
    this[1]  = "Jan.";  this[2]  = "Feb.";  this[3]  = "Mar.";
    this[4]  = "April";  this[5]  = "May";  this[6]  = "June";
    this[7]  = "July";  this[8]  = "Aug.";  this[9]  = "Sept.";
    this[10] = "Oct.";  this[11] = "Nov.";  this[12] = "Dec.";
    return this;
}
			

function makeVerseArray() {
	this.length = 130;
	this[1]="Jeremiah 29:11";
	this[2]="1 Chronicles 4:10";
	this[3]="Luke 6:39";
	this[4]="John 8:7";
	this[5]="John 13:34";
	this[6]="Proverbs 4:23";
	this[7]="Ephesians 4:32";
	this[8]="Psalm 29:11";
	this[9]="Mark 10:27";
	this[10]="Hebrews 10:24";
	this[11]="Luke 2:10";
	this[12]="Colossians 3:17";
	this[13]="Matthew 28:20";
	this[14]="2 Samuel 22:31";
	this[15]="Proverbs 11:19";
	this[16]="Matthew 7:7";
	this[17]="Galatians 6:7";
	this[18]="Psalm 46:10";
	this[19]="Lamentations 3:22-23";
	this[20]="Matthew 6:33";
	this[21]="Galatians 5:22-23";
	this[22]="Proverbs 16:6";
	this[23]="Ephesians 6:1-2";
	this[24]="James 5:16";
	this[25]="Luke 12:24";
	this[26]="Romans 12:19";
	this[27]="Philippians 14:15";
	this[28]="Philippians 4:6-7";
	this[29]="Ephesians 4:29";
	this[30]="Luke 6:31";
	this[31]="2 Timothy 1:7";
	this[32]="John 3:16";
	this[33]="Romans 1:16";
	this[34]="Titus 2:11";
	this[35]="1 Timothy 6:10";
	this[36]="2 Peter 1:5-7";
	this[37]="Proverbs 9:6";
	this[38]="Luke 6:38";
	this[39]="Philippians 4:13";
	this[40]="2 Chronicles 7:14";
	this[41]="Psalms 118:8 ";
	this[42]="John 11:25";
	this[43]="Matthew 5:16";
	this[44]="Psalm 68:19";
	this[45]="Psalm 106:1";
	this[46]="Psalm 139:23-24";
	this[47]="Ecclesiastes 7:3";
	this[48]="Romans 10:9";
	this[49]="Isaiah 40:8";
	this[50]="Mark 11:24";
	this[51]="Ephesians 6:13";
	this[52]="Hebrews 12:1";
	this[53]="Acts 3:26";
	this[54]="1 John 5:18";
	this[55]="Colossians 1:28-29";
	this[56]="1 Corinthians 6:19-20";
	this[57]="Isaiah 30:21";
	this[58]="Romans 8:28";
	this[59]="Proverbs 15:29 ";
	this[60]="Psalms 17:7";
	this[61]="Isaiah 41:10 ";
	this[62]="Jeremiah 29:12 ";
	this[63]="Jeremiah 29:13";
	this[64]="James 1:5 ";
	this[65]="James 1:6 ";
	this[66]="Joshua 1:9 ";
	this[67]="Philippians 1:9";
	this[68]="Proverbs 3:5";
	this[69]="Proverbs 3:6";
	this[70]="1 Peter 3:12 ";
	this[71]="Colossians 4:2";
	this[72]="Matthew 7:8 ";
	this[73]="Romans 12:10";
	this[74]="John 15:7";
	this[75]="John 16:24";
	this[76]="Revelation 22:12";
	this[77]="Proverbs 25:28";
	this[78]="Hebrews 12:2";
	this[79]="Proverbs 17:17";
	this[80]="Matthew 5:3";
	this[81]="Matthew 5:4";
	this[82]="Matthew 5:5";
	this[83]="Matthew 5:6";
	this[84]="Matthew 5:7";
	this[85]="Matthew 5:8";
	this[86]="Matthew 5:9";
	this[87]="Matthew 5:10";
	this[88]="Isaiah 55:8-9";
	this[89]="John 3:3";
	this[90]="Proverbs 4:23";
	this[91]="Hebrews 10:25";
	this[92]="Isaiah 49:15";
	this[93]="Deuteronomy 6:5";
	this[94]="Joshua 22:5";
	this[95]="Zechariah 8:17";
	this[96]="Ephesians 5:1";
	this[97]="Ephesians 6:24";
	this[98]="1 John 2:5";
	this[99]="Exodus 31:15";
	this[100]="Exodus 23:25";
	this[101]="Exodus 34:14";
	this[102]="1 Samuel 1:27";
	this[103]="Erza 8:23";
	this[104]="Erza 6:10";
	this[105]="Genesis 1:27";
	this[106]="Exodus 14:14";
	this[107]="Psalm 27:1";
	this[108]="Psalm 27:14";
	this[109]="Psalm 46:1";
	this[110]="Psalm 86:7";
	this[111]="Psalm 103:1";
	this[112]="Psalm 103:8";
	this[113]="Psalm 111:1";
	this[114]="Psalm 116:1-2";
	this[115]="Psalm 118:1";
	this[116]="Psalm 119:105";
	this[117]="Proverbs 14:12";
	this[118]="Proverbs 22:6";
	this[119]="Isaiah 40:28";
	this[120]="Isaiah 44:6";
	this[121]="Isaiah 53:5";
	this[122]="Malachi 3:10";
	this[123]="Matthew 6:1";
	this[124]="Mark 12:30";
	this[125]="Luke 6:41";
	this[126]="Luke 10:16";
	this[127]="Luke 12:48b";
	this[128]="Luke 16:13";
	this[129]="John 10:30";
	this[130]="John 12:47";
	
	return this;
}

function makeTranslationArray (){
	this.length = 130;
	this[1]= "NIV";
	this[2]= "NKJV";
	this[3]= "KJV";
	this[4]= "KJV";
	this[5]= "KJV";
	this[6]= "NIV";
	this[7]= "KJV";
	this[8]= "NIV";
	this[9]= "KJV";
	this[10]= "NIV";
	this[11]= "KJV";
	this[12]= "KJV";
	this[13]= "KJV";
	this[14]= "NIV";
	this[15]= "KJV";
	this[16]= "KJV";
	this[17]= "KJV";
	this[18]= "NIV";
	this[19]= "NIV";
	this[20]= "NIV";
	this[21]= "NIV";
	this[22]= "KJV";
	this[23]= "KJV";
	this[24]= "KJV";
	this[25]= "KJV";
	this[26]= "KJV";
	this[27]= "KJV";
	this[28]= "NIV";
	this[29]= "NIV";
	this[30]= "NIV";
	this[31]= "NIV";
	this[32]= "KJV";
	this[33]= "KJV";
	this[34]= "KJV",
	this[35]= "KJV";
	this[36]= "NIV";
	this[37]= "KJV";
	this[38]= "NIV";
	this[39]= "NKJV";
	this[40]= "NIV";
	this[41]= "NKJV";
	this[42]= "KJV";
	this[43]= "KJV";
	this[44]= "NIV";
	this[45]= "NKJV";
	this[46]= "NIV";
	this[47]= "KJV";
	this[48]= "KJV";
	this[49]= "NIV";
	this[50]= "NIV";
	this[51]= "NIV";
	this[52]= "NIV";
	this[53]= "KJV";
	this[54]= "NIV";
	this[55]= "NIV";
	this[56]= "KJV";
	this[57]= "NIV";
	this[58]= "NIV";
	this[59]= "NIV";
	this[60]= "NIV";
	this[61]= "NKJV";
	this[62]= "NKJV";
	this[63]= "NKJV";
	this[64]= "NKJV";
	this[65]= "NKJV";
	this[66]= "NKJV";
	this[67]= "NKJV";
	this[68]= "NKJV"; 
	this[69]= "NKJV";
	this[70]= "NKJV";
	this[71]= "NKJV";
	this[72]= "NKJV";
	this[73]= "NKJV";
	this[74]= "NKJV";
	this[75]= "NKJV";
	this[76]= "NKJV";
	this[77]= "NIV";
	this[78]= "NIV";
	this[79]= "NIV";
	this[80]= "NIV";
	this[81]= "NIV";
	this[82]= "NIV";
	this[83]= "NIV";
	this[84]= "NIV";
	this[85]= "NIV";
	this[86]= "NIV";
	this[87]= "NIV";
	this[88]= "NLT";
	this[89]= "NLT";
	this[90]= "NLT";
	this[91]= "NLV";
	this[92]= "NLT";
	this[93]= "NIV";
	this[94]= "NIV";
	this[95]= "NIV";
	this[96]= "NIV";
	this[97]= "NIV";
	this[98]= "NIV";
	this[99]= "NIV";
	this[100]= "NIV";
	this[101]= "NIV";
	this[102]= "NIV";
	this[103]= "NIV";
	this[104]= "NIV";
	this[105]= "NASB";
	this[106]= "NASB";
	this[107]= "NASB";
	this[108]= "NASB";
	this[109]= "NASB";
	this[110]= "NASB";
	this[111]= "NASB";
	this[112]= "NASB";
	this[113]= "NASB";
	this[114]= "NIV";
	this[115]= "KJV";
	this[116]= "KJV";
	this[117]= "NIV";
	this[118]= "NIV";
	this[119]= "NIV";
	this[120]= "KJV";
	this[121]= "NIV";
	this[122]= "NIV";
	this[123]= "NIV";
	this[124]= "NIV";
	this[125]= "NIV";
	this[126]= "NIV";
	this[127]= "NIV";
	this[128]= "NIV";
	this[129]= "NIV";
	this[130]= "KJV";


	return this;
}

function makeScriptureArray () {
	this.length = 130;
	this[1]= "&quot;For I know the plans I have for you,&quot; declares the LORD, &quot;plans to prosper you and not to harm you, plans to give you hope and a future.&quot;";
	this[2]= "...&quot;Oh, that You would bless me indeed, and enlarge my territory, that Your hand would be with me, and that You would keep me from evil, that I may not cause pain! &quot;  So God granted him what he requested.";
	this[3]= "...Can the blind lead the blind? shall they not both fall into the ditch?";
	this[4]= "...He that is without sin among you, let him first cast a stone... ";
	this[5]= "A new commandment I give unto you, That ye love one another; as I have loved you, that ye also love one another.";
	this[6]= "Above all else, guard your heart, for it is the wellspring of life.";
	this[7]= "And be ye kind one to another, tenderhearted, forgiving one another, even as God for Christ's sake hath forgiven you.";
	this[8]= "The Lord gives strength to his people; the Lord blesses his people with peace.";
	this[9]= "And Jesus looking upon them saith, With men it is impossible, but not with God: for with God all things are possible.";
	this[10]= "And let us consider how we may spur one another on toward love and good deeds.";
	this[11]= "And the angel said unto them, Fear not; for, behold, I bring you good tidings of great joy, which shall be to all people.  For unto you is born this day in the city of David a Saviour, which is Christ the Lord.  ";
	this[12]= "And whatsoever ye do in word or deed, do all in the name of the Lord Jesus, giving thanks to God and the Father by him.";
	this[13]= "And, lo, I am with you alway, even unto the end of the world.";
	this[14]= "As for God, His way is perfect; the word of the Lord is flawless.  He is a shield for all who take refuge in Him.";
	this[15]= "As righteousness tendeth to life: so he that pursueth evil pursueth it to his own death.";
	this[16]= "Ask, and it shall be given you; seek and ye shall find; knock, and it shall be opened unto you.";
	this[17]= "Be not deceived; God is not mocked: for whatsoever a man soweth, that shall he also reap.";
	this[18]= "Be still, and know that I am God.";
	this[19]= "Because of the Lord's great love we are not consumed, for His compassions never fail. They are new every morning; great is Your faithfulness.";
	this[20]= "But seek first His kingdom and His righteousness, and all these things will be given to you as well";
	this[21]= "But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness and self-control. Against such things there is no law.";
	this[22]= "By mercy and truth iniquity is purged: and by the fear of the Lord men depart from evil";
	this[23]= "Children, obey your parents in the Lord: for this is right.  Honour thy father and mother; which is the first commandment with promise;";
	this[24]= "Confess your faults one to another, and pray one for another, that ye may be healed.  The effectual fervent prayer of a righteous man availeth much";
	this[25]= "Consider the ravens: for they neither sow nor reap; which neither have storehouse nor barn; and God feedeth them: how much more are ye better than the fowls?";
	this[26]= "Dearly beloved, avenge not yourselves, but rather give place unto wrath: for it is written, vengeance is mine; I will repay, saith the Lord";
	this[27]= "Do all things without murmurings and disputes:  That ye may be blameless and harmless, the sons of God, without rebuke, in the midst of a crooked and perverse nation, among whom ye shine as lights in the world";
	this[28]= "Do not be anxious about anything, but in everything, by prayer and petition, with thanksgiving, present your requests to God. And the peace of God, which transcends all understanding, will guard your hearts and your minds in Christ Jesus.";
	this[29]= "Do not let any unwholesome talk come out of your mouths, but only what is helpful for building others up according to their needs, that it may benefit those who listen.";
	this[30]= "Do to others as you would have them do to you";
	this[31]= "For God did not give us a spirit of timidity, but a spirit of power, of love and of self-discipline.";
	this[32]= "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";
	this[33]= "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth…";
	this[34]= "For the grace of God that bringeth salvation hath appeared to all men";
	this[35]= "For the love of money is the root of all evil: which while some coveted after, they have erred from the faith, and pierced themselves through with many sorrows";
	this[36]= "... make every effort to add to your faith goodness; and to goodness, knowledge; and to knowledge, self-control; and to self-control, perseverance; and to perseverance, godliness; and to godliness, brotherly kindness; and to brotherly kindness, love.";
	this[37]= "Forsake the foolish, and live; and go in the way of understanding";
	this[38]= "Give, and it will be given to you. A good measure, pressed down, shaken together and running over, will be poured into your lap. For with the measure you use, it will be measured to you";
	this[39]= "I can do all things through Christ who strengthens me. ";
	this[40]= "If my people, who are called by my name, will humble themselves and pray and seek my face and turn from their wicked ways, then will I hear from heaven and will forgive their sin and will heal their land.";
	this[41]= "It is better to trust in the LORD than to put confidence in man.";
	this[42]= "Jesus said unto her, I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live";
	this[43]= "Let your light so shine before men, that they may see your good works, and glorify your Father which is in heaven";
	this[44]= "Praise be to the Lord, to God our Savior, who daily bears our burdens";
	this[45]= "Praise the LORD! Oh, give thanks to the LORD, for He is good! For His mercy endures forever.";
	this[46]= "Search me, O God, and know my heart; test me and know my anxious thoughts. See if there is any offensive way in me, and lead me in the way everlasting.";
	this[47]= "Sorrow is better than laughter: for by the sadness of the countenance the heart is made better";
	this[48]= "That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved";
	this[49]= "The grass withers, the flower fades, but the word of our God stands forever.";
	this[50]= "Therefore I tell you, whatever you ask for in prayer, believe that you have received it, and it will be yours.";
	this[51]= "Therefore put on the full armor of God, so that when the day of evil comes, you may be able to stand your ground, and after you have done everything, to stand.";
	this[52]= "Therefore, since we are surrounded by such a great cloud of witnesses, let us throw off everything that hinders and the sin that so easily entangles, and let us run with perseverance the race marked out for us.";	this[53]= "Unto you first God, having raised up his Son Jesus, sent him to bless you, in turning away every one of you from his iniquities.";
	this[54]= "We know that anyone born of God does not continue to sin; the one who was born of God keeps him safe, and the evil one cannot harm him.";
	this[55]= "We proclaim him, admonishing and teaching everyone with all wisdom, so that we may present everyone perfect in CHRIST. To this end I labor, struggling with all his energy, which so powerfully works in me.";
	this[56]= "What? Know ye not that your body is the temple of the Holy Ghost which is in you, which ye have of God, and ye are not your own?  For ye are bought with a price therefore glorify God in your body, and in your spirit, which are God's.";
	this[57]= "Whether you turn to the right or to the left, your ears will hear a voice behind you, saying, &quot;This is the way; walk in it. &quot;";
	this[58]= "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.";
	this[59]= "The LORD is far from the wicked but he hears the prayer of the righteous.";
	this[60]= "Show the wonder of your great love you who save by your right hand those who take refuge in you from their foes.";
	this[61]= "Fear not, for I am with you, I will uphold you with My righteous right hand.";
	this[62]= "Then you will call upon Me and go and pray to Me, and I will listen to you.";
	this[63]= "And you will seek Me and find Me, when you search for Me with all your heart.";
	this[64]= "If any of you lacks wisdom, let him ask of God, who gives to all liberally and without reproach, and it will be given to him.";
	this[65]= "But let him ask in faith, with no doubting, for he who doubts is like a wave of the sea driven and tossed by the wind.";
	this[66]= "Have I not commanded you? Be strong and of good courage; do not be afraid, nor be dismayed, for the Lord your God is with you wherever you go.";
	this[67]= "And this I pray, that your love may abound still more and more in knowledge and all discernment";
	this[68]= "Trust in the Lord with all your heart, And lean not on your own understanding;";
	this[69]= "In all your ways acknowledge him and He shall direct your paths.";
	this[70]= "For the eyes of the Lord are on the righteous, And His ears are open to their prayers; But the face of the Lord is against those who do evil.";
	this[71]= "Continue earnestly in prayer, being vigilant in it with thanksgiving; ";
	this[72]= "For everyone who asks receives, and he who seeks finds, and to him who knocks it will be opened.";
	this[73]= "Be kindly affectionate to one another with brotherly love, in honor giving preference to one another;";
	this[74]= "If you abide in Me, and My words abide in you, you will ask what you desire, and it shall be done for you.";
	this[75]= "Until now you have asked nothing in My name. Ask, and you will receive, that your joy may be full.";
	this[76]= "And behold, I am coming quickly, and My reward is with Me, to give to every one according to his work";
	this[77]= "Like a city whose walls are broken down is a man who lacks self-control.";
	this[78]= "Let us fix our eyes on Jesus, the author and perfecter of our faith, who for the joy set before him endured the cross, scorning its shame, and sat down at the right hand of the throne of God.";
	this[79]= "A friend loves at all times.";
	this[80]= "Blessed are the poor in spirit, for theirs is the kingdom of heaven.";
	this[81]= "Blessed are those who mourn, for they will be comforted.";
	this[82]= "Blessed are the meek, for they will inherit the earth.";
	this[83]= "Blessed are those who hunger and thirst for righteousness, for they will be filled.";
	this[84]= "Blessed are the merciful, for they will be shown mercy.";
	this[85]= "Blessed are the pure in heart, for they will see God.";
	this[86]= "Blessed are the peacemakers, for they will be called sons of God.";
	this[87]= "Blessed are those who are persecuted because of righteousness, for theirs is the kingdom of heaven.";
	this[88]= "My thoughts are completely different from yours, says the Lord.  And My ways are far beyond anything you could imagine.  For just as the heavens are higher than the earth, so are My ways higher than your ways and My thoughts higher than your thoughts.";
	this[89]= "I tell you the truth, no one can see the kingdom of God unless he is born again.";
	this[90]= "Above all else, guard your heart, for it affects everything you do.";
	this[91]= "Let us not stay away from church meetings. Some people are doing this all the time. Comfort each other as you see the day of His return coming near.";
	this[92]= "Never! Can a mother forget her nursing child? Can she feel no love for a child she has borne? But even if that were possible, I would not forget you!";
	this[93]= "Love the LORD your God with all your heart and with all your soul and with all your strength.";
	this[94]= "But be very careful to keep the commandment and the law that Moses the servant of the LORD gave you: to love the LORD your God, to walk in all his ways, to obey his commands, to hold fast to him and to serve him with all your heart and all your soul.";
	this[95]= "Do not plot evil against your neighbor, and do not love to swear falsely. I hate all this, declares the LORD";
	this[96]= "Be imitators of God, therefore, as dearly loved children.";
	this[97]= "Grace to all who love our Lord Jesus Christ with an undying love.";
	this[98]= "But if anyone obeys his word, God's love is truly made complete in him. This is how we know we are in him.";
	this[99]= "For six days, work is to be done, but the seventh day is a Sabbath of rest, holy to the LORD.";
	this[100]= "Worship the LORD your God, and his blessing will be on your food and water.";
	this[101]= "Do not worship any other god, for the LORD, whose name is Jealous, is a jealous God.";
	this[102]= "I prayed for this child, and the LORD has granted me what I asked of him.";
	this[103]= "So we fasted and petitioned our God about this, and he answered our prayer.";
	this[104]= "So that they may offer sacrifices pleasing to the God of heaven and pray for the well-being of the king and his sons.";
	this[105]= "God created man in His own image, in the image of God He created him; male and female He created them.";
	this[106]= "The Lord will fight for you while you keep silent.";
	this[107]= "The Lord is my light and my salvation; whom shall I fear?";
	this[108]= "Wait for the Lord; Be strong and let your heart take courage; Yes, wait for the Lord.";
	this[109]= "God is our refuge and strength, a very present help in trouble.";
	this[110]= "In the day of my trouble I shall call upon you, for you will answer me.";
	this[111]= "Bless the Lord, O my soul, And all that is within me, bless His holy name.";
	this[112]= "The Lord is compassionate and gracious, slow to anger and abounding in lovingkindness.";
	this[113]= "Praise the Lord! I will give thanks to the lord with all my heart, in the company of the upright and in the assembly.";
	this[114]= "I love the LORD, for he heard my voice;He heard my cry for mercy.Because he turned his ear to me,I will call on him as long as I live.";
	this[115]= "O give thanks unto the LORD; for he is good: because his mercy endureth for ever.";
	this[116]= "Thy word is a lamp unto my feet, and a light unto my path.";
	this[117]= "There is a way that seems right to a man, but in the end it leads to death.";
	this[118]= "Train a child in the way he should go, and when he is old he will not turn from it.";
	this[119]= "Do you not know? Have you not heard? The LORD is the everlasting God, the Creator of the ends of the earth. He will not grow tired or weary, and his understanding no one can fathom.";
	this[120]= "Thus saith the LORD the King of Israel, and his redeemer the LORD of hosts; I am the first, and I am the last; and beside me there is no God.";
	this[121]= "But he was pierced for our transgressions, he was crushed for our iniquities; The punishment that brought us peace was upon him, and by his wounds we are healed.";
	this[122]= "Bring the whole tithe into the storehouse, that there may be food in my house. Test me in this, says the LORD Almighty, and see if I will not throw open the floodgates of heaven and pour out so much blessing that you will not have room enough for it";
	this[123]= "Be careful not to do your acts of righteousness before men, to be seen by them. If you do, you will have no reward from your Father in heaven.";
	this[124]= "Love the Lord your God with all your heart and with all your soul and with all your mind and with all your strength.";
	this[125]= "Why do you look at the speck of sawdust in your brother's eye and pay no attention to the plank in your own eye?";
	this[126]= "He who listens to you listens to me; he who rejects you rejects me; but he who rejects me rejects him who sent me.";
	this[127]= "...From everyone who has been given much, much will be demanded; and from the one who has been entrusted with much, much more will be asked.";
	this[128]= "No servant can serve two masters. Either he will hate the one and love the other, or he will be devoted to the one and despise the other. You cannot serve both God and money.";
	this[129]= "I and the Father are one.";
	this[130]= "And if any man hear my words, and believe not, I judge him not: for I came not to judge the world, but to save the world.";
	
	

	return this;
}

// These functions can be used for count down
// simply create a data variable with time such as   
// startScripture = new Date(thisYear,7,24);
// then call   myVar = daysSince(startScripture);
function dayToDays(inTime) {
	return(inTime.getTime() /(1000*60*60*24))
}

function daysTill(inDate) {
	return(Math.ceil(dayToDays(inDate)-dayToDays(now)))
}

function daysSince(inDate) {
	return(Math.ceil(dayToDays(now)-dayToDays(inDate)))
}

//Calculate scripture to display
function ScriptureDateTime() {
  thisYear = now.getYear();
  thisMonth = now.getMonth()+1;
  thisDate = now.getDate();
  dayScripture = new makeScriptureArray();
  dayVerse = new makeVerseArray();
  dayTranslation = new makeTranslationArray();
  prevDays = new makeDaysInYearArray();
  pastDays = prevDays[thisMonth] + thisDate;
  numScript = dayScripture.length;
  with(Math){
  myVar = pastDays%129 ;
  }
  document.write(dayScripture[myVar+1] + "<br>" + dayVerse[myVar+1]+ ", " + dayTranslation[myVar+1] );
}

// Calculate and display current date
function DateTime() {
  
  monthName = new makeMonthArray(); 
  dayName = new makeDayArray();
  
  hour = now.getHours();
  if ( hour < 12 ) {
    ampm = "am";
  }
  else if ( hour > 12 ) {
    ampm = "pm";
    hour = hour - 12;
  }
  else {
    ampm = "pm";
  }
  
  minute = now.getMinutes();
  if ( minute < 10 ) {
    minute = "0" + minute;
  }
  month = monthName[now.getMonth() + 1];
  date = now.getDate();
  day = dayName[now.getDay() + 1];
  year = now.getFullYear();

  document.write ( "Scripture of the Day<br>" +  
       day + ", " + month + " " + date + ", " + year + ":<br>");
}

