function replaceMe(Obj){    
    var newObj=document.createElement("img");
    newObj.src=Obj.src;
    if (Obj.className!=undefined) newObj.className=Obj.className;
    if (Obj.width!=undefined) newObj.width=Obj.width;
    if (Obj.height!=undefined) newObj.height=Obj.height;
    if (Obj.alt!=undefined) newObj.alt=Obj.alt;
    if(typeof newObj.style.opacity!="undefined") newObj.style.opacity=.5;
    else
     if(typeof newObj.style.filter!="undefined") newObj.style.filter="Alpha(opacity=50)";
    else newObj.style['-moz-opacity']=.5;
    Obj.style.position='absolute';
    Obj.style.position.left=-500;
    Obj.style.display='none';
    Obj.parentNode.insertBefore(newObj,Obj);
    return true;
}

function doReplaceButtons(FormObj){
    if (!document.getElementById) return false;
    for(var i=0;i<FormObj.childNodes.length;i++){
        if (FormObj.childNodes[i].childNodes.length>0) doReplaceButtons(FormObj.childNodes[i]);
        if (FormObj.childNodes[i].type=='image') if (replaceMe(FormObj.childNodes[i])) i++;
    }
}