function RunQTDIVwrite(nextsong, musicpath, servername) {
	document.write('<div id="qtdiv">\n');
	document.write('<OBJECT id="qtobj" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="300" height="42" codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n');
	document.write('<param name="src" value="' + musicpath + '">\n');
	document.write('<param name="autoplay" value="true">\n');
	document.write('<param name="controller" value="true">\n');
	document.write('<param name="loop" value="false">\n');
	document.write('<param name="qtnext1" value="backmusic_frame.html?do=' + nextsong + '">\n');
	document.write('<EMBED name="qtobj" id="qtobj" src="' + musicpath + '" width="300" height="42" autoplay="true" TYPE="video/quicktime" controller="true" loop="false" enablejavascript="true" qtnext1="http://' + servername + '/backmusic_frame.html?do=' + nextsong + '"/>\n');
	document.write('</OBJECT>\n');
	document.write('</div>\n');
}

function RunMPOBJwrite (musicpath) {
	document.write('<div id="mpdiv">\n');
	document.write('<OBJECT id="mpobj" width="300" height="42" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">\n');
	document.write('<PARAM NAME="URL" VALUE="' + musicpath + '">\n');
	document.write('<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">\n');
	document.write('<PARAM NAME="AutoStart" VALUE="true">\n');
	document.write('<PARAM name="uiMode" value="full">\n');
	document.write('<PARAM name="PlayCount" value="0">\n');
	document.write('</OBJECT>\n');
	document.write('</div>\n');
}
