// eMail Obfuscator Script 2.1 by Tim Williams - freeware
function decode(coded)
{
	cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
	shift=coded.length
	link=""
	for (i=0; i<coded.length; i++){
		if (cipher.indexOf(coded.charAt(i))==-1){
			ltr=coded.charAt(i)
			link+=(ltr)
		}
		else {     
			ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
			link+=(cipher.charAt(ltr))
		}				
    }
	return link
}


// eMail Obfuscator Script 2.1 by Tim Williams - freeware
function encryptemail(coded, replacement)
{
	document.write('<a href="mailto:'+decode(coded)+'?subject='+ location.href + '"><u>'+replacement+'</u></a>')
}

function encryptinfo(coded)
{
	document.write("<a href='mailto:"+decode(coded)+"'>Cliquez ici</a>")
}

function createMailSubject(debut, coded, fin)
{
	return(debut+decode(coded)+fin)
}

function BeginEndMail(debut, coded, fin)
{
	document.write(createMailSubject(debut, coded, fin))
}
