
function print_mail_url(domain, username, text)
{
  if (domain == "") {
    domain = "nyh" + "o.org";
  }
  if (text == null || text == "") {
    text = username + '@' + domain;
  }
  document.write('<a href="' + 'mai' + 'lto:' + username + '@' + domain + '">'
                 + text + '</a>');
} // print_mail_url()


function dumpObj(obj, name, indent, depth)
{
  if (depth > 2) {
    return indent + name + ": <Maximum Depth Reached>\n";
  }

  if (typeof obj == "object") {
    var child = null;
    var output = indent + name + "\n";
    indent += "\t";
    for (var item in obj) {
      try {
        child = obj[item];
      }
      catch (e) {
        child = "<Unable to Evaluate>";
      }
      if (typeof child == "object") {
        //output += dumpObj(child, item, indent, depth + 1);
        output += indent + item + ": " + child + "\n";
      }
      else {
        output += indent + item + ": " + child + "\n";
      }
    }
    return output;
  }
  else {
    return obj;
  }
}
