/*
Eencoder - email encoder

a - email user name
b - email host name 
c - email domain name
d - optional variable should be set to display a name other than the email address
*/

function frandzero()
{
	if( Math.round(Math.random()) == 0 )
		return '0';
	else
		return '';
}

function EencoderM(a,b,c,d)	
{
	em = a + "@" + b + "." + c;
	eem = "&#" + em.charCodeAt(0) + ";" + em.charAt(1)
	for( i=2; i<em.length; i++ ) {eem += "&#" + frandzero() + em.charCodeAt(i) + ";"}
	var eemv = d || "";
	if( eemv == "" ) eemv = eem;
	uc = '<a href=' + '"mai' + 'lto:' + eem + '">' + eemv + '</a>'
	document.write(uc)
}

