

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(5)
quote[0] = "The healing doesn't begin until the papers are signed."
quote[1] = "Divorce dates from just about the same time as marriage; I think that marriage is a few weeks the more ancient."
quote[2] = "Remarriage is an excellent test of just how amicable your divorce was."
quote[3] = "I'm not a moralist, I'm a lawyer."
quote[4] = "Divorce is like a root canal: never wanted, sometimes needed."

author = new StringArray(5)
author[0] = ""
author[1] = "Voltaire"
author[2] = "Margo Kaufman"
author[3] = "Winston Conway"
author[4] = ""


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>'  )
}



