function resetimage(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.otheratts='class="sterge" style="background-image: url(_common/templates/default/images/shopping-forms-icons-ro.gif);"';
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(\'Stergeti continutul formularului?\'))');
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>');
}

