/**
 * Simple JavaScript to prevent spiders and other web
 * page scrapers from obtaining your email address
 * and adding it to SPAM lists.
 *
 * ©2004 Frank T. Rios
 *
 * INSTRUCTIONS:
 * To use this, simply add the following whenever
 * you wish to display your email address:
 *
 *		<script language="javascript">
 *			mailTo("user", "domain.com", "Email Me");
 *		</script>
 * 
 * The third argument is optional.
 *
 * NOTE: THIS JAVASCRIPT CAN BE FREELY DISTRIBUTED
 *       AS LONG AS THIS INFORMATION REMAINS INTACT
 *       AND UNALTERED.
 */
function mailTo(aUserName, aDomain, aDescription)
{
	var email = aUserName + "@" + aDomain;
	var desc = email; // Default Description
	
	// Override the default description if they provided one
	if (aDescription != null)
	{
		desc = aDescription;
	}
	
	document.write("<a href='mailto:" + email + "'>" + desc + "</a>");
}
