/**
 * obsfucate.js
 * obsfucate Version 2 - Dec. 9, 2005
 * Odyssey Consulting Corp. by Danny Ringo
 * Copyright (c) 2005
 * This code is an amalgam of many examples of ways to mangle an e-mail address.
 * Thus Odyssey grants you a royalty free license to use or modify this software provided that
 * this copyright notice appears on all copies.
 * This software is provided "as is" without a warranty or liability to Odyssey Consulting Corp. of any kind.
 *
 * This function lets you put a "href:mailto:" statement in the html code so that a scanning bot cannot harvest the
 * e-mail name, while still creating an e-mail link on the page.
 * Arguments:
 * usr = the e-mail name that comes before the @ in the e-mail address.  Example: 'dan'  Required.
 * addr = the domain name that comes after the @ in the e-mail address.  Example: "odycc.com".  If empty string '', will
 *        use the default in the code
 * disp = the text that will be shown as the hyperlink on the web page.  Example: 'Contact Us'  If empty string will
 *        use the specified e-mail address.
 * txtColor = The color of the text for the hyperlink.  If empty string it will use the default text.
 * subjectTxt = The text that will show up in the subject line.  Example:  'Contact Request'  if empty the subject will
 *              be left blank.
 * Search for the function name "obsfucate" below to see examples of how it is used.
 */
function obsfucate(usr, addr, disp, txtColor, subjectTxt)
  {
  if(!addr)addr='wdcetoken.com'  // The default address
    addr=(usr + '@' + addr);
  if (txtColor)
    txtColor = 'style="color: ' + txtColor + '"';
  if (subjectTxt)
    subjectTxt = '?subject=' + subjectTxt;
    beginTag = '<a ';
    strMailTo = 'href="mailto:' + addr + subjectTxt + '">';
    endTag = '</a>';
    document.write(beginTag + txtColor + strMailTo + disp + endTag);
  }

