//=====================================================
// ScriptMail by Michael Lucas
// Copyright 2004, feel free to reuse this        
// code but please leave copyright info intact.  
//  
// Why this works is there is no valid email address
// anywhere on the page until the moment the user 
// clicks the link.  

// Below is the link tag that should be associated with
// the email to be disguised. In place of "0" you can put
// the name of the person you are sending it to. For instance,
// the name would be "Mark" in Mark@mail.com ...

// <a href="javascript:void(0);" onClick="getAction();">

// The HTML below needs to go directly above the function. the function 
// belongs at the VERY END of the entire DOCUMENT (right after the
// form tags below.												   

// <form name="mailform" ENCTYPE = "text/plain" method="POST"></form>

//=====================================================

function getAction(incoming)  {
  var parts = new Array(4);
  parts[3] = "com"; 
  parts[0] = "mailto:";
  parts[1] = "southernorchiddevelopment";
  parts[2] = "@gmail.";

  try  {
    if (incoming.length != 0)  {  parts[1] = incoming;  }
    }
  catch (err)  {
    ;
    }
	document.mailform.action = parts[0] + parts[1] + parts[2] + parts[3];
  	document.mailform.submit();
  }
