function reverse_string(str) {
	var c = str.length, i;
	
	for (i = (c - 1); i >= 0; --i)
		document.write(str.charAt(i));
}

function safe_email_link(to, subject, text) {
	document.write('<a href="mailto:');
	reverse_string(to);
	document.write('?subject=' + escape(subject) + '">' + text + '<' + '/a>');
}
