// JavaScript Document

function mailto(name, domain, displayText)
{
	var htmlText = "";
	htmlText += '<a href=\"mailto:' + name + '@' + domain + '\">';
	if (displayText == '') 
	{
		htmlText += name + '@' + domain;
	}
	else
	{
		htmlText += displayText;
	}
	htmlText += '</a>';
	return htmlText;		
}