//<script language="javascript">
//<!--
//  Use this routine to write out the full mailto: link, 
//  with the link-text set to either the third argument, or if blank, the actual address.  eg:
//   <script language="javascript">write_email( "diane", "dbrwebdesign.com", "email me" );</script>
//   <script language="javascript">write_email( "diane", "dbrwebdesign.com");</script>

function write_email(  )
{
//   arg[0]=user   arg[1]=domain  arg[2]=linktext(optional)
    var murl = "<A HREF=mailto:" + arguments[0] + "@" + arguments[1] + ">" ;
    if (  arguments.length > 2 )
    {   var add_string = arguments[2];
    }
    else
    {   var add_string = arguments[0] + "@" + arguments[1] ; 
    }
    document.write( murl + add_string + "</a>" );
}


// -->
//</script>
