function onSample()
{
var myObject = new Object();
if (myObject)
{
shell.addDOMObject("myObject", myObject);
}
}
function onSample2()
{
// Now you can access the object from the Shell.
var myObject = shell.myObject
}