// Handles the dynamic creation of a mailto: link, without exposing a
// valid email address to a potential code-harvesting spam-bot.
//
// usage;
// javascript:void(mailto(string username, string domain));
//
// example;
// <a href="javascript:void(mailto('username', 'domain.com'));">Send Mail</a>

function mailto(user, domain) {
	void(document.location.href='mailto:' + user + '@' + domain);
	return false;
}

function mailtotxt(user, domain) {
	document.write(user + '@' + domain);
	return true;
}
