function writeMailLink( account, server, tld, className, title, text )
{
	var classStr = ( className ) ? " class=\"" + className + " " : "";
	var titleStr = ( title ) ? "?subject=" + encodeURI(title) : "";
	var mailStr = getMail( account, server, tld, title );
	var linkStr = ( text ) ? text : getMail( account, server, tld, title );
	document.write( "<a"  + classStr + "\"href=\"mailto:" + mailStr + titleStr + "\">" + linkStr + "</a>");
}

function writeMail( account, server, tld )
{
	document.write( getMail( account, server, tld ) );
}

function getMail( account, server, tld )
{
	return ( account + "\@" + server + "." + tld );
}
