

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(10)
quote[0] = "The poet presents details; he doesn't comment."
quote[1] = "Character is revealed only through action."
quote[2] = "Ideas only in things."
quote[3] = "Poetry should please by a fine excess."
quote[4] = "A poem is a momentary stay against confusion."
quote[5] = "I no sooner have an idea than it turns into an image."
quote[6] = "The last thing you learn is what comes first."
quote[7] = "Literature is the forgiveness of sin."
quote[8] = "Writing is prayer."
quote[9] = "The time for work is shorter all the time, and if you waste it you feel as if you've committed a sin for which there is no forgiveness."

author = new StringArray(10)
author[0] = "Ezra Pound"
author[1] = "Aristotle"
author[2] = "William Carlos Williams"
author[3] = "John Keats"
author[4] = "Robert Frost"
author[5] = "Goethe"
author[6] = "Pascal"
author[7] = "W.B. Yeats"
author[8] = "Franz Kafka"
author[9] = "Ernest Hemingway"



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>'  )
}


