function CreateControl(DivID, CLSID, ObjectID, Style, TagText, ParamText)
{

// DivID 	The id of the new <DIV> section that has been added in place of the <OBJECT> section.
// CLSID 	The class guid of the object to be generated.
// ObjectID 	The id parameter for the <OBJECT> section to be generated.
// Style 	The text of the Style parameter.  This can be a zero length string.
// TagText 	The exact text of any other parameters that are to be included in the generated <OBJECT> tag.  This can be a zero length string
// ParamText 	The exact text to included between the <OBJECT></OBJECT> tags.  This can be a zero length string.
//
// This function is never called directly but is used by all the following functions.


	var d = document.getElementById(DivID);
	d.innerHTML = '<object ' +
		'classid="clsid:' + CLSID + '" ' +
		'id="' + ObjectID + '" ' +
		'style="FONT-SIZE:8pt;FONT-FAMILY:Arial,Verdana;' + Style + '" ' +
		TagText +
		'>' + ParamText + '</object>';
}


function CreateControl_Flash(DivID, ObjectID, InnerText)
{
	var CLSID = 'D27CDB6E-AE6D-11cf-96B8-444553540000';
	var ObjectParams = 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="422" height="76"';

	CreateControl(DivID, CLSID, ObjectID, '', ObjectParams, InnerText);
}
