function removeFlashBorder(obj) {
    var objs = obj.getElementsByTagName('OBJECT');
    for(var i=0; i<objs.length; i++){
        try{    
            var t = document.createElement('param');
            t.setAttribute("name","WMODE");
            t.setAttribute("value","transparent");
            objs[i].removeAttribute('data');
            objs[i].outerHTML = objs[i].outerHTML;
        }catch(e){ }       
    }       
    objs = obj.getElementsByTagName('APPLET');
    for(var i=0; i<objs.length; i++){
            objs[i].removeAttribute('data');
            objs[i].outerHTML = objs[i].outerHTML;
    }       
    objs = obj.getElementsByTagName('EMBED');
    for(var i=0; i<objs.length; i++){
            objs[i].removeAttribute('data');
            objs[i].setAttribute('WMODE','transparent');
            objs[i].outerHTML = objs[i].outerHTML;
    }       
}