// File: IncludeControl.js
// Author: Grant Winman
// IDE: Dreamweaver 8
// Use: This implements the Microsoft workaround for IE security update 917425.  This // script allows htm files to load ActiveX controls automatically in Microsoft
// Internet Explorer.

//Use this function to write object open tags
function WriteObjOpenTag(style, classid, codebase, width, height) {

	var openobject = '<object style="' + style +'" classid="' + classid + '" codebase="' + codebase + '" width="' + width + '" height="' + height + '">';
	document.write(openobject);
	
}

//Use this function to write object close tags
function WriteObjCloseTag() {
	document.write('</object>');
}

//Use this function to write param tags
function WriteParamTag(name, value) {
	var param = '<param name="' + name + '" value="' + value + '">';
	document.write(param);
}

//Use this function to write embed tags
function WriteEmbedTag(src, quality, pluginspage, type, width, height) {
 var embed = '<embed src="' + src + '" quality="' + quality + '" pluginspage="' + pluginspage + '" type="' + type + '" width="' + width + '" height="' + height + '"></embed>';
 document.write(embed);
}