/* *********************************************************************** */
function obfuscateEmail(email, withLink, linktext) {
	var str = email.replace(/[a-zA-Z]/g, function(c) { return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26); });
	str = str.replace(/\/\//g, '@');
	str = str.replace(/\//g, '.');
	str = reverseString(str);
	
	if (withLink) {
		if (linktext == '') {
			linktext = str;
		}
		document.write('<a href="mailto:' + str + '">' + linktext + '</a>');
	} else {
		document.write(str);
	}
}
/* *********************************************************************** */
function reverseString(str) {
	splitext = str.split("");
	revertext = splitext.reverse();
	reversed = revertext.join("");
	return reversed;
}
/* *********************************************************************** */
