    /* By storing the name, at sign, domain, and dotcom separately; and using JavaScript to write out the mailto tag using variables, we can foil e-mail trolling bots. As far as I know, they're not yet that sophisticated :) */
			
    /* To modify this JavaScript to suit your needs, simply change the values assigned to the variables, and the content of the document.write lines below. */
    /* See email-protector-examples.asp for examples */

    function emailProtector(atsign, virtual_domain, dotcom, name) {
      if (atsign && virtual_domain && dotcom && name) {
        document.write(name + atsign + virtual_domain + dotcom);
	  }
    }
	
    function emailProtectorReturn(ratsign, rvirtual_domain, rdotcom, rname) {
      if (ratsign && rvirtual_domain && rdotcom && rname) {
        //document.write(name + atsign + virtual_domain + dotcom);
        return (rname + ratsign + rvirtual_domain + rdotcom);
	  }
    }
    
    function emailProtectorLink(atsign, virtual_domain, dotcom, name, ahref, ahrefend, linkname, endline) {
      if (atsign && virtual_domain && dotcom && name && ahref && ahrefend) {
        //var atsign = "@";
        if (endline) {
          var endline_tested = endline;
        } else {
          var endline_tested = "";
        }

        if (linkname) {
          document.write(ahref, name + atsign + virtual_domain + dotcom, ahrefend, linkname, "</a>" + endline_tested);
        } else {
          document.write(ahref, name + atsign + virtual_domain + dotcom, ahrefend, name + atsign + virtual_domain + dotcom, "</a>" + endline_tested);
        }
	  }
    }
