function setColor(what,color,color2) {
        if(what.style) { if(color!='') what.style.backgroundColor=color; if(color2!='') what.style.borderColor=color2; }
        else if(what.bgColor) {
                if(color!='') what.bgColor=color;
                if(what.ol) what.ol.bgColor=color;
        }
        else if(document.layers) {
                var l=FindLayer(document,what);
                if(l===undefined) return;
                setColor(l,color,color2);
        }
        else if(document.all || document.getElementById) {
                var p=what.indexOf('.');
                var tmp_id= (p!=-1) ?what.substring(what.lastIndexOf('.')+1) :what;
                if(document.all&& document.all[tmp_id]) { setColor(document.all[tmp_id],color,color2); }
                else if(document.getElementById(tmp_id)) { setColor(document.getElementById(tmp_id),color,color2); }
        }
}
