<object codename="oMyObject" classid="xxxxxxxxx"></object>
var oMyObject = new ActiveXObject("program.id");
oMyObject = null;
document.write("could not instantiate object");
i think i answered my own question. setting them equal to null doesn't create any new errors so i guess its working.