// email.js  v1.0.0
// May 27, 2004
// {5


/*   obscured_mailto

display a "mailto:" url while trying to hide the email address from automated harvesters

INPUTS
user			the user portion of the email address
domain			the domain portion of the email address
extra_attrs		extra attributes to add to the anchor tag, such as a CSS style (see example 2) -- or an empty string ('')

RETURNS
true

CAVEATS
harvesters may now interpret javascript and thus be able to defeat this

EXAMPLE USAGE #1
In a place where you'd normally use a mailto tag for someone@example.com, substitute this:
<script language="JavaScript">obscured_mailto('someone', 'example.com', '')</script>

EXAMPLE USAGE #2
If you need to specify a CSS style, class, etc in the anchor tag, follow this example:
<script language="JavaScript">obscured_mailto('someone', 'example.com', 'style="color: green"')</script>

*/
function obscured_mailto (user, domain, extra_attrs) {
	document.write('<a href="mailto:' + user + "@" + domain + '" ' + extra_attrs + '>' + user + "@" + domain + '</a>');
	return true;
}
