Hey!

how can access the methods that my object has in JavaScript ?
so..

In html i have this:
<head>
..
<script language="JavaScript" src="geral.js" type="text/javascript"></script>
..
<head>
<body onload="init()"
...

<object id="OB" classid="CLSID:285A526A-F94F-4A38-A9CF-EAFFDB8B47B1" style="width="80" height="25"></object>
</body>
and in geral.js i have this
var obj = document.createElement("object");


function init()
{
obj.id="OB";
obj.classid="CLSID:285A526A-F94F-4A38-A9CF-EAFFDB8B47B1";
System.Gadget.Flyout.file = "flyout.html";
System.Gadget.settingsUI = "Settings.html";
System.Gadget.onSettingsClosed = loadParams;
System.Gadget.Flyout.onHide = loadParams;


OB.CommPort = 3;

OB.settings = "9600,n,8,1";

loadParams();

//gadgetContent.innerText = OB.teste;
this it don'w work it says:
"The object does not support property or method 'teste'" -.-

}
Somebody can help me? thanks