//******************************************************//
// This script will mask email address by breaking them //
// into segments that do not resemble a valid email     //
// address in html source code.                         //
//                                                      //
// This script requires mail.gif to be                  //
// in the /images directory.                            //
//                                                      //
// call by placing the email address                    //
// (e.g. william.j.knight) into the name parameter and  //
// the domain into the domain parameter                 //
// (e.g. verizon.net)                                   //
//                                                      //
// function hidemail(william.j.knight, verizon.net)     //
//                                                      //
// Copyright 2004, 2005 William J. Knight               //
// All rights reserved.                                 //
//                                                      //
// contact William J. Knight at                         //
// william.j.knight@verizon.net for permission          //
// to utilize this script                               //
//                                                      //
// Rev 2 removed at.gif to allow web based email users  //
// to cut and paste address.  This slightly decreases   //
// the security of this routine in favor of usability   //
//                                                      //
// *****************************************************//

function hidemail(name, domain)

{
 document.write("<a href='mail"+"to:"+name+"@"+domain+"'> \
 <img border='0' src='images/mail.gif' alt='[Email Address]' \
 width='15' height='12'>" + " " + name + "@" + domain + "</a>");
}