Help with "Click to activate" & FlashVars

I implemented the use of this:

<script type="text/javascript" src="ieupdate.js"></script>

Whicht he JS file contains:

objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects*.outerHTML = objects*.outerHTML;
}

A fix I found online; but with this fix my swf’s are not recieving the FlashVars sent by the HTML file. Anyone have this issue?