<!--

/* 

This function dynamically generates a mailto link so that
email addresses don't need to be hard-coded in the HTML. 
This should be pretty effective against web crawlers who 
want to steal and spam your email addresses.

For example:  someone.great@hotmail.com

ext     - Domain type ('com')
dom     - Domain ('hotmail')
pre     - First part of the email address ('someone.great')
display - Actual link text (optional, defaults to the email address)
subject - Subject line for the email (optional, defaults to empty)

*/

function scramble( ext, dom, pre, display, subject )
{
    if( !subject )
    {
      subject = '';
    }
    var f1 = '<a href=\"mai';
    var f2 = 'lto:';
    var f3 = '@';
    var f4 = '.';
    var f5 = '?subject='+subject+'\">';
    var f6 = '</a>';
    var f7 = pre + f3 + dom + f4 + ext
    if( !display )
    {
      display = f7;
    }
    document.write( f1 + f2 + f7 + f5 + display + f6 );
}

//-->
