/* === this module is used to prevent an email address from being read */
/* === by a web bot */
/* To use this include the following code where you want an email address */
/*
Email:
  <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="lmailto.js"></script>

  <SCRIPT LANGUAGE="JavaScript" type="text/javascript" >
    <!-- // Activate cloak
      LMAILTO_display("address","server","extension");
    // Deactivate cloak -->
  </SCRIPT>

 For example:

   LMAILTO_display("myEmail","yahoo","ca");

 $Log: lmailto.js $
 Revision 1.3  2008-12-19 20:38:07-04  Battersby
 - works with jsval (jslint)

 Revision 1.2  2008-03-04 10:54:22-04  Battersby
 - simplified LMAILTO_display() so that it can be passed the individual email pieces
 instead of needing an array


*/

function LMAILTO_display(address,server,extension) {
  fullAddress = address + "@" + server + "." + extension;
  document.writeln("<a href='mailto:" +
                     address    +
                     "@"        +
                     server     +
                     "."        +
                     extension  +
                     "'>"       +
                     address    +
                     "@"        +
                     server     +
                     "."        +
                     extension  +
                     "</a>");
}  /* end of LMAILTO_display */
