I have the following windows media player object integrated in a page. How to call a javascript action when the movie is finished?

Thanks Wouter

<object id="WMPlay" width=80 height=60
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715">


<Param Name="FileName" Value="dummy.avi">
<Param Name="Autostart" Value="true">
<Param Name ="Loop" Value="false">

<Param Name ="Href" Value="http://www.dummy.htm">
<Param Name ="AutoRewind" Value="-1">
</object>