/*
 * Provide variable defs enclosed in double quotes.
 *
 * DISPLAY is text to be displayed as a link; if text is
 * not supplied, the address itself will be displayed.
 */

function Build(domain, tld, name, display)
{
   var address = name + "\u0040" + domain + "." + tld;
   var url = "mailto:" + address;

   if( ! display )
   {
      display = address;
   }

   document.write("<a href=\"" + url + "\">" + display + "</a>");
}