function sendToFriend()
{
	var url = window.location.href;
	var firstSlash;
	var w;
	//First strip the http:// or https://
	if(url.slice(0,7) == "http://")
	{
		url = url.slice(7);
	}
	else
	{
		if(url.slice(0,8) == "https://")
		{
			url = url.slice(8);
		}
	}
	//Now strip the domain
	firstSlash = url.indexOf("/");
	if(firstSlash === false)
	{
		url = "";
	}
	else
	{
		url = url.slice(firstSlash);
	}
	//w = window.open();
	//w.width = 600;
	//w.height = 400;
	//w.location.href = "/sendtofriend.php?link=" + url;//Open the form page
	 var msg=open("/sendtofriend.php?link=" + url, 'emailtofriend', "status=no,toolbar=no,directories=no,scrollbars=no,menubar=no,location=no,resizable=yes,width=600,height=400");
}