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