// mt.js
// 
// A JavaScript replacement for the mailto CGI.
// 

function mt(text, user,domain,suffix)
{
	if (!domain)
	{
		host = location.hostname;
		host = host.replace(/^www\./, '');
		
	}
	else
	{
		host = domain + '.' + suffix;
	}

	document.write('<a href=\"mailto:' + user + '@' + host + '\">');
	document.write(text);
	document.write ('<\/a>');
}