I am creating a web page for which I need to add an ActiveX control (a windows media plugin)
in to IE7. I tried th following sample code.

<object id="Player"
<param name="FileName" value="videos/king.wmv" />
<param name="autostart" value="false"/>

</object><!-- Create an INPUT control to get a file path from the user. -->
<INPUT Type = "TEXT" ID = "inputURL">

<!-- Create a BUTTON control to execute the script. -->
<INPUT Type = "BUTTON" ID = "openMedia" VALUE = "Open Media"
onClick = "

/* Specify the URL obtained from user input. */
Player.URL = inputURL.value;

/* Start the Player. */;
when i ran this code, the IE shows this error message
"Error: 'Player.controls' is null or not an object"
Can anybody please help..i ve to deliver this code by Monday.