// email.js
// Output an email link which to the maximum possible degree 
// is proof to web email harvesting spiders.


function mailto( name, server, linktext )
{
	var email
	var text
	
	email = name + "&#64;" + server
	text = linktext;
	
	if ( linktext == '' )
	{
		text = email;
	}
	else if ( typeof(linktext) == "undefined" ) 
	{
		text = email;
	}
	
	document.write( '<a href="mailto:', email, '">', text, '</a>' );
}