// SPAM-Proof Email

// Trivial source code taken from: http://www.joemaller.com/js-mailer.shtml
// Majority of code written by: Elaine Quon (elaine@quonfamily.org)
// Version 1.5 (11/06/04)

// Instructions
// 1. Populate and rename the data variables below to fit your organization.
// 2. Insert the following code in page headers. If necessary add link to src item.
//       <script type="text/javascript" src="SPAM-Proof.js"></script>
// 3. Make the following function call as needed. Replace email_01 with your variables.
//       <script>SPAM_Proof_Email(email_01, subject, link_text)</script>

//
// Data: Email Addresses
// SCCLA Addresses
	var user_01='info';			// 01 username 
	var domain_01='sccleather.org';			// 01 domain
	
	email_01 = user_01 + '@' + domain_01;	// assemble address 01


// FUNCTION:	SPAM-Proof Email
// Variables:
// address = Full email address as cited in data above (i.e. email_01)
// subject = text of email message (optional)
// link_text = anchor text (printed text indicating link) (optional, defaults to address)

function SPAM_Proof_Email(address, subject, link_text){

// If no link_text is provided, use address as the link text
if (!link_text)
	link_text = address;

// If subject is provided, include subject in mailto
if (subject)
	document.write('<A HREF="mailto:' + address + ' ?subject=' + subject +'">' + link_text + '</a>')

// No subject provided
else
	document.write('<A HREF="mailto:' + address + '">' + link_text + '</a>')
		
}
// End

// FUNCTION:	Write Email
// Variables:
// address = Full email address as cited in data above (i.e. email_01)

function Write_Email(address) {
	document.write(address)
}