function quotes_random(quote_index) { // quote_index is set in the calling HTML
    var index = quote_index;

    if (index == 0) //calculate a random index if the passed value is 0
    {
        index = 1 + Math.floor(Math.random() * (quoteswriteteam.length - 1));
    }

    //Find the quotation
    var chosenquotation;
    var chosenauthor;

    // Choose the quotation based on  index
    var bottomlength = 1;
    var toplength = quoteswriteteam.length - 1;

    if (index <= toplength) {
        chosenquotation = quoteswriteteam[index];
        chosenauthor = authorswriteteam[index];
    }


    // Display the quotation if it isn't blank (leave those ending with 0 blank, including 0)
    if (chosenquotation.length > 0) {
        var quotereturn = "\n\n<dl class=\"quotations\">\n<dt>";
        quotereturn = quotereturn + chosenquotation + "</dt>\n<dd class=\"quotations\">" + "- " + chosenauthor + "</dd>\n</dl>\n";
        document.write(quotereturn);
    }
}