//
// Defeat spambot scanning
// 
// (they will need to execute this code in order
// to actually be able to get the fully
// formed e-address)
//
// writes out mail to address without using
// the 'at' symbol
//

function make_mail_to( preamble, atts, name, address, linktext, postamble )
{

  document.write( preamble );
  document.write( '<a ' + atts + ' href="' + 'mail' + 'to' + "&#058;" );
  make_eddress( '', name, address, '' );
  document.write( '">' + linktext + '</a>' );
  document.write( postamble );
}


function make_eddress( preamble, name, address, postamble )
{
  document.write( preamble );
  document.write( name + "&#064;" + address );
  document.write( postamble );
}



//<script type="text/javascript">
//    make_mail_to( '<div id="detailemailbutton">',
//                  'id="provemail_svc" title="Email this provider"', 
//                  'name', 'address.co.uk',
//
//                  '<span class="alt">Email this provider</span>',
//                  '</div>' );
//</script>
