function InsertMovie(movie)
{
    var str= '<object ' +
    'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ' +
    'WIDTH="320" HEIGHT="256" ' +
    'CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">\n' +
    '<PARAM name="CACHE" VALUE="true">\n' +
    '<PARAM name="AUTOPLAY" VALUE="false">\n' +
    '<PARAM name="CONTROLLER" VALUE="true">\n'
    ;
        
    str += '<param name="src" value="' + movie + '" />\n' +
       '<EMBED SRC="' + movie + '" WIDTH="320" HEIGHT="256" AUTOPLAY="false" ' +
       ' CONTROLLER="true" CACHE="true" ' +
       'PLUGINSPAGE="http://www.apple.com/quicktime/download/"> ' +
       '</EMBED> ' +
       '</object>\n';

    document.write(str);
    /*debug
    var display_str;
    display_str = str.replace(/\</g, "&lt;");
    document.write(display_str);
    */
}
/*****
http://www.apple.com/quicktime/tutorials/embed.html

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
        WIDTH="320" HEIGHT="256"
        CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
  <PARAM name="SRC" VALUE="cosmopolitan_hi.mov">
  <PARAM name="AUTOPLAY" VALUE="false">
  <PARAM name="CONTROLLER" VALUE="true">
  <EMBED SRC="cosmopolitan_hi.mov" WIDTH="320" HEIGHT="256" AUTOPLAY="false"
        CONTROLLER="true"
        PLUGINSPAGE="http://www.apple.com/quicktime/download/">
  </EMBED>
</OBJECT>
---------
in .html file, to load movie:
<script src="[path]/InsertMovie.js" language="JavaScript"
type="text/javascript"></script>

and to call movie:

<script language="JavaScript"
type="text/javascript">InsertSampleMovie();</script>
---------
in .js file:
function InsertSampleMovie()
{
document.write('<object classid="clsid: 02BF25D5..." ...>\n');
document.write('<param name="src" value="sample.mov" />\n');
document.write('</object>\n');
}
******/

