ActiveXObject(): What exactly is needed?

Hi. Is there anything special or additional that is needed (e.g. embedded object) in order to use the ActiveXObject in javascript (for IE 6.0)?

I have tried three variations in coding it, but I get different errors for them. Also, I have tried adjusting the browser settings through tools → Internet options → Security, but it does not seem to be working:

#1

var WshShell = WScript.CreateObject(“WScript.Shell”);

JavaScript error: WScript is undefined

#2

var osScript = new ActiveXObject(“WScript.Shell”);

var ads = osScript.CreateObject(“ADSystemInfo”) ;

Javascript error: Automation server can’t create object

#3

var ads = new ActiveXObject(“ADSystemInfo”);

Javascript error: Automation server can’t create object

Thanks for any suggestions that you may have.

Brendan