// Init
var modules = new Array();
function doLoad(moduleName)
{
  for (var i = 0; i < modules.length; i++)
  {
    if (moduleName == modules[i])
      return;
  }

  load(moduleName);
  modules[modules.length] = moduleName;
}

function getFunctions(object)
{
  var property;
  var functions = "";

  for (property in object)
  {
    if (
      property != "getFunctions" &&
      typeof object[property] == "function"
    )
    {
      functions += object[property];
    }
  }

  return functions;
}

function getVariables(object)
{
  var property;
  var variables = new java.util.Vector();

  for (property in object)
  {
    if (typeof object[property] != "function")
    {
      variables.addElement(property);
    }
  }

  return variables;
}

function nvl(object)
{
  return object == null ? "" : object;
}
