I want to add some functionality track certain calls to ActiveX object methods in javascript. 

I usually create my activeX object like this:
var tconn = new ActiveXObject("Tconnector");

I need to log every time the **open** method is called on tconn and all other instances of that activeX control.

I cant modify tconn's prototype because it does not have one! 

I think that i can create a dummy ActiveXObject function that creates a proxy object to proxy calls to the real one. Can you help me do that?

Note: writing a direct wrapper is out of question, because there are already 1000s of calls to this activeX within the application.