I want to pass a video file name to the following working code - preferably using javascript. I cannot figure out how to put the js variable into the code - the value a want to make dynamic is the

<param name="fileName" value="myVideo.avi">
and
src="myVideo.avi"

Here is the full file code to give the bigger picture:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Video Clip</title>
<style type="text/css">
body { 
padding-top:0;
padding-bottom:0;
padding-left:0;
padding-right:0;
margin-top:0;
margin-bottom:0;
margin-left:0;
margin-right:0;
}
</style>
</head>
<body>

<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="800" height="580">
<param name="fileName" value="myVideo.avi">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="myVideo.avi" name="MediaPlayer1" width=800 height=580 autostart=1 showcontrols=1 volume=-300>
</object>

</body>
</html>