function gotolastspot() {
    this.text = 'Back';
    this.write = lastspot_write;
}

function lastspot_write() {
    if (!window.history) return;
    if (window.history.length == 0) return;

    document.write('<INPUT TYPE=BUTTON onClick="history.back(-1)" VALUE="', this.text, '"');
    if (this.otheratts)
        document.write(' ', this.otheratts);

    document.write('>');
}