// ===========================================
//  Created by: John-Erik Omland -- JEOWebProductions.com
// ===========================================

/* -- USAGE:    stopSpamEmail(displayed_text, email1, email2, subject) 
     -- EXAMPLE: stopSpamEmail("displayed hyperlinked text", "email addr first part", "email addr AFTER the @", "subject line") 
     -- NOTE:      the call to stopSmalEmail must be included within a Javascript <script>...</script> code block 
     -- NOTE:      you should replace any spaces in the SUBJECT string with the '%20' hex code for 'space' 
     -- NOTE:      "subject", "email1" and "email2" are optional parameters. "displayed_text" is required 
  */
  
function stopSpamEmail(displaytext, mail1, mail2, subject) {
//  var displaytext = "E-mail to Webmaster"; // Enter text to display on page
  var mail1 = (mail1 == null) ? "Webmaster" : mail1; // Enter first part of e-mail address
  var mail2 = (mail2 == null) ? "JEOWebProductions.com" : mail2; // Enter second part of e-mail address
  var subject = (subject == null) ? "?subject=Inquiry_from_website" : ("?subject="+subject); // enter subject for e-mail
  document.write("<a href=" + "mail" + "to:" + mail1 + "@" + mail2 + subject + ">" + displaytext + "</a>")
}
// ===========================================

