You judge JavaScript as it would be a class based language, which is not.
You have there is a constructor, not a class. That makes the inner functions to be the methods of the object, not the methods of the constructor.
That makes the token this to have different meanings, according to the scope. And there is a difference between the function declaration and the function expression.
Try this:
function MyClass()
{
this.setPanStyleByName = function(idName,t,r,b,l,i100)
{
var o=window.document.getElementById(idName);
[COLOR="Blue"]setPanStyleByNode(o,t,r,b,l,i100);[/COLOR]
}
this.setPanStyleByNode = function(o,t,r,b,l,i100)
{
...
}
[COLOR="Blue"]var setPanStyleByNode=this.setPanStyleByNode;[/COLOR]
}