<!--
// copyright 1999-2001 Idocs, Inc. http://www.idocs.com/tags/
// Distribute this script freely, but keep this 
// notice with the code.
var resetRolls = new Object();

function resetimage(src){
    this.src = src;
    this.confirm = true;
    this.alt = "Reset";
    this.write = resetimage_write;
}

function resetimage_write(){
    document.write('<a ');
    if (this.rollover) {
        if (!this.name) {
            alert('to create a rollover you must give the image a name');
            return;
        }
        
        resetRolls[this.name] = new Object();
        resetRolls[this.name].over = new Image();
        resetRolls[this.name].over.src = this.rollover;
        resetRolls[this.name].out = new Image();
        resetRolls[this.name].out.src = this.src;
        document.write(' onMouseOver="if (document.images)document.images[\'' +
        this.name +
        '\'].src=resetRolls[\'' +
        this.name +
        '\'].over.src"' +
        ' onMouseOut="if (document.images)document.images[\'' +
        this.name +
        '\'].src=resetRolls[\'' +
        this.name +
        '\'].out.src"');
    }
    document.write(' href="javascript:');
    if (this.confirm) 
        document.write('if(confirm(\'Are you sure you want to reset?\'))');
    document.write('document.forms[' +
    (document.forms.length - 1) +
    '].reset();void(0);">');
    document.write('<img src="' + this.src + '" alt="' + this.alt + '"');
    document.write(' border=0');
    if (this.name) 
        document.write(' name="' + this.name + '"');
    if (this.height) 
        document.write(' height=' + this.height);
    if (this.width) 
        document.write(' width=' + this.width);
    if (this.otheratts) 
        document.write(' ' + this.otheratts);
    document.write('></a>');
}

