Firefox resets flash because of Javascript

Hi,
Does anyone here know why the following code:


function test(){ 
document.body.scroll = "";
document.body.style.overflow = "";
}     

Makes Firefox reset the entire swf? Apparantly more people have problems with firefox resetting when using certain javascript, but I can’t find out how to fix this. The swf resets when I call to this function from flash.

Any help would be appreciated,
Thnx