//--------------------------------------------------------------------
//  mail.js
//      Create mail link
//--------------------------------------------------------------------

//--------------------------------------------------
//  MailLink
//
//  Purpose: Create an email link, with script to help obscure the link in the source.
//  Inputs:
//      sDomain     - Domain to email.
//      sName       - Name to email.
//      sDisplay    - Text to display. Leave blank to display the email itself.
//  Returns:
//      none
//
//  Write an email link to the page.
//  Split up the mailto string, only because interdev is making the link.
//
//--------------------------------------------------
function MailLink(sDomain, sName, sDisplay)
{
        document.write('<a href=\"mail' + 'to:' + sName + '@' + sDomain + '\ ">'); 
        if (sDisplay != "")
        {
            document.write(sDisplay); 
        }
        else
        {
            document.write(sName + '@' + sDomain); 
        }
        document.write('</a>'); 
}

