// Based on http://w2.syronex.com/jmr/safemailto/
// str1 and str2 should be calculated from the above URL
// str3 is the text to be displayed to the user, e.g. Email us, and should be unescaped
// str4 is the subject of the message and should be entered unescaped (and may be empty)
function mailto(str1, str2, str3, str4) {
	var v2=str1;
	var v7=unescape(str2);
	var v5=v2.length;
	var v1="";
	for(var v4=0;v4<v5;v4++) {
		v1+=String.fromCharCode(v2.charCodeAt(v4)^v7.charCodeAt(v4));
	}
	return '<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject='+escape(str4)+'\'">'+str3+'</a>';
}
