Hello, I have a problem with this code that is not allowing it to play in a different window. I know the mpeg works, and I'm sure the embed code is right, so what is wrong?


<script language="JavaScript">
function openindex(myvar)
{
OpenWindow=window.open("", "newwin",

"height=350,width=300,toolbar=no,scrollbars=1,menubar=no");
OpenWindow.document.write('<embed src= "' + myvar + '"

autostart=true></embed>\n')
OpenWindow.document.write('<a href="javascript:window.close();">Return to

Article</a>')
OpenWindow.document.close()
self.name="main"
}
</SCRIPT>

<a href="javascript:openindex('cls182kk.avi')">SuperNova Video MPEG</a>
</body>

</html>