
function mailto(to, subject) {
  // A little custom function to "encrypt" the mail data in order to hide
  // it from spam bots.
  // Usage: 
  //   <a href="javascript:mailto('na &me~s urna***me# ex ampl e~com', '')">contact me</a>
  // Just add random " ", "*", "&" inside the text, and replace "." with "~" and "@" with "#"
  
	// decrypt mail (spam sux)
	to = to.replace(/#/g, "@");
	to = to.replace(/~/g, ".");
	to = to.replace(/&/g, "");
	to = to.replace(/\*/g, "");
	to = to.replace(/ /g, "");
	
	if (confirm('Press OK to send a mail to ' + to + '')) {
		window.location = "mailto:" + to + "?subject=" + subject;
	}
}