//Completed Script (contents of dynActiveX.js):

//When the page loads:
window.onload = function()
{	
	if (document.getElementsByTagName) {
		var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
		for (i=0; i<objs.length; i++)
		{
			objs[i].outerHTML = objs[i].outerHTML; //Get the HTML content of each object tag and replace it with itself.
		}
	}
}
//When the page unloads:
window.onunload = function()
{
	if (document.getElementsByTagName) {
		var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
		for (i=0; i<objs.length; i++)
		{
			objs[i].outerHTML = ""; //Clear out the HTML content of each object tag to prevent an IE memory leak issue.
		}
	}
}

//This approach seemed to fix the memory leak problem.

//To include the script in my webpage, I added the following to the Head Section to load the script for Internet Explorer 6 or higher only:
<!--[if gte IE 6]>
//<script src="dynActiveX.js"></script>
<!--[endif]-->
