//This file was created on 9/10/10 and is used to hide email address from harvesters. The link to this file was placed below the ivany_styles2.css link using find & replace on 217 files

//START EMAIL SCRAMBLE

function stringReverse(textString) {
   if (!textString) return '';
   var revString='';
   for (i = textString.length-1; i>=0; i--)
       revString+=textString.charAt(i)
   return revString;
}

function showEM(userName,emServer) {
/* The showEM() function displays a link to the user's e-mail address.  The username and e-mail server name are entered in reverse order to thwart e-mail harvesting programs.
*/
	userName = stringReverse(userName); // undo the reversed username
	emServer = stringReverse(emServer); // Undo the reversed server name
	var emLink = userName+"@"+emServer; // combine the username and server name as defined in the function
	document.write("<a href='mailto:"+emLink+" '>"); // recreates the link
	//document.write(emLink); // writes the link so it is visible
	document.write('Email me'); // writes email so it is visible
	document.write("</a>"); // close the a element.
	
}

/**this goes in the HTML 
<script type="text/javascript">showEM("is","moc.ynaviardnas");</script>
*/
//END EMAIL SCRAMBLE








