// De-SPAM tool
// by JMD 20040813
// Based on idea by PayPalHelper
//
// To use:
// 1. Add this file to the directory of your html files.
// 2. Add the following code to the <head> of your html file:
// 	<script type = "text/javascript" src  = "despam.js">
//	</script>
// 3. Add the folowing <a> link to the body of your html file:
//	<a href="mailto:[encrypted]" onclick="FixMail (this);">Email</a>



// Global variables to form email addresses
// Edit these to your form your email address
var at1 = "@";
var dot = ".";
var tld = "com";	// TLD
var id1 = "infor";	// Recipient mail box
var id2 = "mations";		// split in two parts
var url = "staticwhitesound";	// Domain


function FixMail (obj1) {

  //Next line changes the href in the calling HTML to the correct address
  obj1.href = "mailto:" + id1 + id2 + at1 + url + dot + tld;

  var x = confirm( "Our email address is: \n\n"
                  + obj1.href.substr(7)		//this strips off "mailto:" prefix
                  + "\n\n"
                  + "Click OK to send us a message... \n");

  if (x) {
         return true;
         }

  else   {
          obj1.href = "";	//clear the mailto: link so it won't start emailer
          return false;
         }

} //End Function























