function writeFlash(url,width,height){	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" width="'+ width +'" height="'+ height +'">');
	document.write('<param name="movie" value="'+ url +'">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="'+ url +'"" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'"></embed>');
	document.write('</object>');
}

function writeMedia_lecture(id, url,width,height,AnimationAtStart,ShowStatusBar,ShowControls,Volume,etc){
	document.write('<object classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" width="'+ width +'" height="'+ height +'" id="'+ id +'" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">');
	document.write('<param name="transparentAtStart" value="True">');
	document.write('<param name="transparentAtStop" value="True">'); 
	document.write('<param name="AnimationAtStart" value="'+ AnimationAtStart +'">');
	document.write('<param name="AutoStart" value="true">'); 
	document.write('<param name="AutoRewind" value="true">'); 
	document.write('<param name="DisplaySize" value="0">'); 
	document.write('<param name="AutoSize" value="false">'); 
	document.write('<param name="ShowDisplay" value="False">');  
	document.write('<param name="ShowStatusBar" value="'+ ShowStatusBar +'">'); 
	document.write('<param name="ShowControls" value="'+ ShowControls +'">'); 
	document.write('<param name="BufferingTime" value="5">'); 
	document.write('<param name="EnableFullScreenControls" value="-1">'); 
	document.write('<param name="DisplayMode" value="0">'); 
	document.write('<param name="Rate" value="1">'); 
	document.write('<param name="SendMouseClickEvents" value="0">'); 
	document.write('<param name="AllowChangeDisplaySize" value="-1">'); 
	document.write('<param name="FileName" value="'+ url + '">'); 
	document.write('<param name="Volume" value="'+ Volume +'">'); 
	document.write('</object>');
}

function writeMedia(id, url,width,height,AnimationAtStart,ShowStatusBar,ShowControls,Volume,etc){
	document.write('<object id="'+ id +'" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 height='+ height +' type=application/x-oleobject  width='+ width +' standby="Loading Microsoft Windows Media Player components..." align="top" vspace="0" hspace="0">' );
	document.write('<param name="FileName" value="'+ url +'">');
	document.write('<param name="TransparentatStart" value="true">');
	document.write('<param name="TransparentAtStop" value="true">'); 
	document.write('<param name="AnimationatStart" value="'+ AnimationAtStart +'">');
	document.write('<param name="AutoStart" value="true">'); 
	document.write('<param name="AutoRewind" value="true">'); 
	document.write('<param name="DisplayBackColor" value="1">'); 
	document.write('<param name="DisplayForeColor" value="16777215">'); 
	document.write('<param name="DisplaySize" value="0">'); 
	document.write('<param name="AutoSize" value="flase">'); 
	document.write('<param name="ShowDisplay" value="false">');  
	document.write('<param name="ShowStatusBar" value="'+ ShowStatusBar +'">'); 
	document.write('<param name="ShowControls" value="'+ ShowControls +'">'); 
	document.write('<param name="BufferingTime" value="5">'); 
	document.write('<param name="Volume" value="'+ Volume +'">'); 
	document.write('<param name="EnableFullScreenControls" value="-1">'); 
	document.write('<param name="DisplayMode" value="0">'); 
	document.write('<param name="Rate" value="1">'); 
	document.write('<param name="SendMouseClickEvents" value="0">'); 
	document.write('<param name="AllowChangeDisplaySize" value="-1">'); 
	document.write('<param name="url" value="'+ url + '">'); 
	document.write('</object>');
}


function writeVoiceBbs(path,name, width, height){

	document.write('<object classid="clsid:7B688F23-3382-46D1-98B7-CE2C15EED4F0" codebase="/VoiceBbs/AxEduTrackViewer.ocx#version=0,0,0,9" width="' + width + '" height="' + height + '">');
	document.write('  <param name="FileSrc" value="' + path + name + '">');
	document.write('  <param name="ViewMode" value="0">');
	document.write('</object>');
}

function writeVisitUpdate(year, term, usertype,userid){
					document.write('<object ID = "UsersCgi" classid="clsid:9EE27E66-DF92-4E13-B348-459CCA350A34" codebase="/jsp/AxEduSessionConfig.ocx#version=0,0,0,7" width="10" height="10">');
					document.write('<param name="Mode" value="2">');
					document.write('<param name="SendTime" value="300">');
					document.write('<param name="SystemCODE" value="1">');
					document.write('<param name="year" value="' + year + '">');
					document.write('<param name="term" value="' + term + '');
					document.write('<param name="UserTYPE" value="' + usertype + '">');
					document.write('<param name="UserID" value="' + userid + '">');
					document.write('<param name="UpdateSrc" value="common_connect_update.jsp">');
					document.write('<param name="MsgSrc" value="">');
					document.write('</object>');
}

function writeEduWebTree(id, width,height, systemcode, year,term,courseid, ostype, voodserver, dname,cmd, updatesrc){

		document.write('<object ID = "' + id  + '" classid="clsid:A88CEC2B-DEB0-47A7-87F0-DB7A3892D053" codebase="/WebFtp/AxEduWebTree.ocx#version=0,0,1,6" width="' + width  + '" height="' + height  + '">');
		document.write('<param name="WindowWidth" value="' + width  + '">');
		document.write('<param name="WindowHeight" value="' + height  + '">');
		document.write('<param name="SystemCODE" value="' + systemcode  + '">');
		document.write('<param name="year" value="' + year  + '">');
		document.write('<param name="Term" value="' + term  + '">');
		document.write('<param name="CourseID" value="' + courseid  + '">');
		document.write('<param name="OSType" value="' + ostype  + '">');
		document.write('<param name="VODSever" value="' + voodserver  + '">');
		document.write('<param name="DirectoryName" value="' + dname  + '">');
		document.write('<param name="cmd" value="' + cmd  + '">');
		document.write('<param name="UpdateSrc" value="' +  updatesrc + '">');
		document.write('</object>');
}

