function Crypt(s)
{
	r='';
	for(i=0;i<s.length;i++)
	{
		n=s.charCodeAt(i);
		if (n>=8364)
		{
			n = 128;
		}
		r += String.fromCharCode( n - 3 );
	}
	return r;
}

function write_email(as_name, as_domain, as_class, as_message, as_title)
{
	a = "pdlowr=";
	m = '@';
	d = unescape(m);
	var aro = as_name + d + as_domain;
	document.write('<a href="../../../../../js/common/' + Crypt(a) + aro + '" class="' + as_class + '" title="' + as_title +'">');
	if (as_message == '') document.write(aro + '</a>');
	else document.write(as_message + '</a>');
}
