// Write an e-mail address to a page by combining the user name and domain name
// which are supplied with the function

// This function is used to prevent spambots from obtaining e-mail addresses
// from websites and sending spam to those addresses. The spambots will see the
// Javascript function, but since the function doesn't contain a full e-mail
// address, the spambots will ignore it

function write_email_address(user_name,domain_name) {

  // Change the dots in the domain name to the appropriate HTML entity (&#046;)

  domain_name = domain_name.replace(/\./,"&#046;");

  // Write the e-mail address, with HTML entities, to the page

  document.write("<a href=\"mailto:"+user_name+"&#064;"+domain_name+"\">"
    +user_name+"&#064;"+domain_name+"</a>");

}