// JavaScript excerpt from WCL for obscuring a "mailto" address
// JavaScript created to email a link to the newsletter
// Created 10/29/2009 for use with the online newsletters

function wcEmail(name,lnk,other){

var ob=name+"@"+"standard.c"+"om";

if(wcEmail.arguments.length==1){

lnk=ob;

other="";

}

if(wcEmail.arguments.length==2){other="";}

if(lnk=="menu"){

location.href='mailto:'+ob+other;

}else{

document.write('<a href="mailto:'+ob+other+'">'+lnk+'</a>');

}

}

function emailArticle() {
		var emailSubject = document.title;
		var urlString = "mailto:?subject=An Article from " + emailSubject + "&body=" + encodeURI("\n\n") + "The address of this page is: " + encodeURI("\n") + location.href + encodeURI("\n");
		location.href = urlString;	//open a new message in the user's e-mail client
		return;
}

