// ***************************************************************************
// ***                           Protected Email                           ***
// ***************************************************************************
// ***                                                                     ***
// *** Protects email addresses from being picked up by web crawlers       ***
// ***                                                                     ***
// ***************************************************************************


// ***************************************************************************
// *** Protected Email                                                     ***
// ***************************************************************************
// 
// Version: 1.0
// Last Updated: 2/02/2008
//
// Function: Converts the specified email address into an email link.
//
// Inputs:
//   encEmail (string) - the email address with arbirary symbols added.
//                       Symbols cannot include ".", "-", "_" or "@"
//
// Outputs:
//   [returns] (string) - email link HTML code

protectedEmail = function(encEmail) {
	encEmail = encEmail.replace(/[^\w\.\-\_@]/g, "");
	return "<a href=\"mailto:" + encEmail + "\">" + encEmail + "</a>";
}