//************************************** 
// Name: Anti-Spam of Email Address 
// Description: A function (fnemail) to prevent spammers from searching out the '@' character in web sites to 
//              extract email addresses that they then use for spamming. 
// By: Louis Delongchamp 
// 
// Inputs:None 
// 
// Returns:None 
// 
//Assumes:None 
// 
//Side Effects:None 
//This code is copyrighted and has limited warranties. 
//Please see http:
//www.Planet-Source-Code.com/xq/ASP/txtCodeId.3274/lngWId.2/qx/vb/scripts/ShowCode.htm 
//for details. 
//************************************** 

function f_email(user,host,tag) { 
eml= "<a href=" + "mail" + "to:" + user +"@" + host + ">" + tag + "</a>"; 
document.write(eml);
} 

function f_email2(user,dom1,dom2) { 
mto= "mail"+"to:"+user+"@"+dom1+"."+dom2;
lnk= user+"@"+dom1+"."+dom2;
eml= "<a href=" + mto + ">" + lnk + "</a>"; 
document.write(eml);
} 

function fnemail(user,host,cuser,chost,sbj,tag) { 
eml= "<a href=mailto:" + user +"@" + host; 
if ((cuser!=="")||(sbj!=="")) eml=eml + "?"; 
if (cuser!=="") eml=eml + "CC=" + cuser + "@" + chost; 
if ((cuser!=="")&&(sbj!=="")) eml=eml + "&"; 
if (sbj!=="") eml=eml + "Subject=" + sbj; 
eml=eml + ">"; 
(tag=="")? eml=eml + user +"@" + host: eml=eml + " " + tag; 
eml=eml + "</a>"; 
document.write(eml);
} 

