function mailThisUrl(){ var m = "I thought this might interest you..."; var url=window.location.href; url = url.replace("&","%26") var title= document.title; var c=url.lastIndexOf("#"); title= title.replace("&","and"); if (c>0) { url=url.substring(0,c); } escape(url); window.location = "mailto:"+"?subject="+m+"&body="+title+" "+url; }