function sendToFriend(){
	var pageTitle = document.title;
	var el = document.getElementById("dynfr");
	var loc = window.location.href.split("/");
	el.innerHTML = '<a class="sendtof" href="sendtoafriend.php?p='+escape(loc[loc.length-1])+'&t='+escape(pageTitle)+'"><img class="send" src="img/btn_sendtoafriend.gif" alt="Send to a friend"></a>';
}
window.onload = sendToFriend;