theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
}

/*
In the page with the SWF file and go to the closing </object> tag and paste this there:

Code:
<script type="text/javascript" src="activex.js"></script>
*/
