// JavaScript Document
// mailto.js
//
// Public Domain 1999, 2004 by Anthony Howe.
//
// Scramble your email address from SPAM Email Crawlers.
//
// Originally inspired by:
//
//    http://innerpeace.org/escrambler.shtml
//
// Add the following to the <head> section of an HTML page:
//
//    <script language="JavaScript1.1" src="mailto.js"></script>
//
// For every place you use the URL "mailto:user@my.domain.tld",
// replace the URL with:
//
//    javascript:mailto('user at my dot domain dot tld')
//
// The scrambling comes three fold: first, the JavaScript is in a
// separate file which probably won't be fetched; second, let alone
// be executed; and finally the email address is broken up into text
// pieces.
//
// To further hide the recipient mail address from spam web crawlers,
// add separate functions for each email address to the file mailto.js
// This will also hide the textual form of the address from the spam
// crawlers.
//
//    function mailme()
//    {
//        mailto('user at domain dot tld');
//    }
//
// Then use this URL instead:
//
//    javascript:mailme()
//
// Works in IE 4, 5, 6 and Netscape 4.7, 6, Mozilla 1.7, Opera 7.53
//

function mailto(here)
{
	here = here.replace(/\s+at\s+/, '@');
	here = here.replace(/\s+dot\s+/g, '.');
	location.href = "mailto:" + here;
}

function maildavidp()
{
	mailto('david.milsted at virgin dot net');
}

function mailfdcu()
{
	mailto('info at firstdorsetcreditunion dot co dot uk');
}

