I've been using the 'this' object function to send objects around, but how does one send the object by name?

been using: call_javascript_function(this, 'some parameter');

I'm trying to do something like this: call_javascript_function(documant.objectname, 'some parameter');

thanks, i know this is easy.