var stripQueue = [];
//Get a list of all ActiveX objects
var objects = document.getElementsByTagName('object');
for (var i=0; i<objects.length; i++){			
	var o = objects[i];	
	var h = o.outerHTML;
	//The outer html omits the param tags, so we must retrieve and insert these separately
	var params = "";
	for (var j = 0; j<o.childNodes.length; j++) {
		var p = o.childNodes[j];
		if (p.tagName == "PARAM"){
			params += p.outerHTML;		       
		}
	}	
	//Get the tag and attributes part of the outer html of the object
	var tag = h.split(">")[0] + ">";			
	//Add up the various bits that comprise the object:
	//The tag with the attributes, the params and it's inner html
	var newObject = tag + params + o.innerHTML + " </OBJECT>";		
	//And rewrite the outer html of the tag 
	o.outerHTML = newObject;
}
