
function createEmbed(obj_path, wid, hei){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+obj_path+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='"+obj_path+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'>");
	document.write("</embed>");
	document.write("</object>");
}

function createObjActiveX(obj_path, wid, hei, action_url, maxfilesize, maxtotalsize){
	obj_path = obj_path.replace("[_comma_]",",");
	
	document.write("<OBJECT ID='atuc' classid='CLSID:E516E78B-CC94-4767-9115-4E47B8056E58'");
	document.write("CODEBASE='"+obj_path+"' width='"+wid+"' height='"+hei+"'>");
	document.write("<PARAM NAME='Method' VALUE='post'>");
	document.write("<PARAM NAME='Action' VALUE='"+action_url+"'><!-- http://magic.xenoinfo.com/upload.php -->");
	document.write("<PARAM NAME='LimitedExt' VALUE='HTM|PHP|ASP|JSP|CGI|PL|'>");
	document.write("<PARAM NAME='ListColor' VALUE='cecfcc'>");
	document.write("<PARAM NAME='ListTextColor' VALUE='ff6600'>");
	document.write("<PARAM NAME='Preview' VALUE='2'>");
	document.write("<PARAM NAME='MaxFileCount' VALUE='2'>");
	document.write("<PARAM NAME='M2005-03-08axFileSize' VALUE='"+maxfilesize+"'>");
	document.write("<PARAM NAME='MaxTotalSize' VALUE='"+maxtotalsize+"'>");
	document.write("</OBJECT>");
}

function createEmbedSWF(obj_path, wid, hei){
	document.write("<EMBED invokeURLs=false autostart=\"false\" AllowScriptAccess=\"eulsukdo\" invokeURLS='false' style=\"WIDTH: "+wid+"px; HEIGHT: "+hei+"px\" src='"+obj_path+"';skinNum=1 type=application/x-shockwave-flash EnableContextMenu=\"false\" >");
}

function createEmbedPieGraph(strDataURL, wid, hei){
	document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+wid+"' HEIGHT='"+hei+"' id='FCPie' ALIGN=''>");
	document.write("	<PARAM NAME=movie VALUE='/xbromini/calendar/Charts/FC_2_3_Pie3D.swf?dataURL="+strDataURL+"&chartWidth="+wid+"&chartHeight="+hei+"'>");
	document.write("	<PARAM NAME=quality VALUE=high>");
	document.write("	<PARAM NAME=bgcolor VALUE=#FFFFFF>");
	document.write("	<EMBED src='/xbromini/calendar/Charts/FC_2_3_Pie3D.swf?dataURL="+strDataURL+"&chartWidth="+wid+"&chartHeight="+hei+"' quality=high bgcolor=#FFFFFF WIDTH='"+wid+"' HEIGHT='"+hei+"' NAME='FCPie' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>");
	document.write("</OBJECT>");
}

function createEmbedPieTable(strDataURL, wid, hei){
	document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+wid+"' HEIGHT='"+hei+"' id='FCPie' ALIGN=''>");
	document.write("	<PARAM NAME=movie VALUE='/xbromini/calendar/Charts/FC_2_3_SSGrid.swf?dataURL="+strDataURL+"&chartWidth="+wid+"&chartHeight="+hei+"'>");
	document.write("	<PARAM NAME='FlashVars' value='numberItemsPerPage=9&bgColor=FFFFFF&alternateRowBgColor=EFEFDF&listRowDividerColor=B0BF9D'>");
	document.write("	<PARAM NAME=quality VALUE=high>");
	document.write("	<PARAM NAME=bgcolor VALUE=#FFFFFF>");
	document.write("	<EMBED src='/xbromini/calendar/Charts/FC_2_3_SSGrid.swf?dataURL="+strDataURL+"&chartWidth="+wid+"&chartHeight="+hei+"' FlashVars='numberItemsPerPage=9&bgColor=FFFFFF&alternateRowBgColor=EFEFDF&listRowDividerColor=B0BF9D' quality=high bgcolor=#FFFFFF WIDTH='"+wid+"' HEIGHT='"+hei+"' NAME='FCPie' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>");
	document.write("</OBJECT>");
}

function createEmbedBarGraph(strDataURL, wid, hei){
	document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+wid+"' HEIGHT='"+hei+"' id='FC2Column' ALIGN=''>");
	document.write("<PARAM NAME=movie VALUE='/xbromini/calendar/Charts/FC_2_3_Column3D.swf?dataURL="+strDataURL+"&chartWidth="+wid+"&chartHeight="+hei+"'>");
	document.write("<PARAM NAME=quality VALUE=high>");
	document.write("<PARAM NAME=bgcolor VALUE=#FFFFFF>");
	document.write("<EMBED src='/xbromini/calendar/Charts/FC_2_3_Column3D.swf?dataURL="+strDataURL+"&chartWidth="+wid+"&chartHeight="+hei+"' quality=high bgcolor=#FFFFFF WIDTH='"+wid+"' HEIGHT='"+hei+"' NAME='FC2Column' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>");
	document.write("</OBJECT>");
}

function createEmbed_wmode(obj_path, wid, hei){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+obj_path+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='"+obj_path+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'>");
	document.write("</embed>");
	document.write("</object>");
}
