

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(6)
quote[0] = "I can do all things through Christ which strengtheneth me."
quote[1] = "For ye are all the children of God by faith in Christ Jesus."
quote[2] = "And to know the love of Christ, which passeth knowledge, that ye might be filled with all the fulness of God."
quote[3] = "Let us therefore come boldly unto the throne of grace, that we may obtain mercy, and find grace to help in time of need."
quote[4] = "Rejoice in the Lord always: and again I say, Rejoice."
quote[5] = "Do not judge lest you be judged. For in the way you judge, you will be judged; and by your standard of measure, it will be measured to you."

author = new StringArray(6)
author[0] = "Philippians 4:13"
author[1] = "Galatians 3:26"
author[2] = "Ephesians 3:19"
author[3] = "Hebrews 4:16"
author[4] = "Philippians 4:4"
author[5] = "Matthew 7:1-2"


function writeQuote()
{
var now = new Date()
var sec = now.getSeconds()
var core = sec % quote.length

var thequote = quote[core]
var theauthor = author[core]
var theq = '&quot;'
var theend = ''


document.write( '<i>' + theq + thequote + theq + " " + theauthor + '</i>'  )
}


