Controlling a swf with javascript (?)

I am trying to control a swf (goto a specific frame) outside Flash - I found this javascript method working perfecty in IE but am looking for a way that also works in Mozilla and Netscape.

[color=Silver]in head of my html:[/color]

<script language=“javascript”>
function goTo(){
var movie = window.document.testnav;
movie.TGotoFrame(’/’,20);
}
</script>

[color=Silver]the body tag:[/color]

<body onLoad=“goTo()”>
+
testnav.swf embedded in the html

This makes my testnav.swf jump to frame 20. But how to get it working
crossbrowser?? Suggestions or links to examples welcome.