<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/system-index-block">
		<SCRIPT TYPE="text/javascript">
		<xsl:comment>
		function popup(mylink, windowname)
		{
		if (! window.focus)return true;
		var href;
		if (typeof(mylink) == 'string')
		   href=mylink;
		else
		   href=mylink.href;
		window.open(href, windowname, 'width=400,height=270,scrollbars=auto');
		return false;
		}
		//</xsl:comment>
		</SCRIPT>	
	
			<a href="#" onclick="return popup(this, 'notes')" id="link">
				<script type="text/javascript" language="javascript">
					<xsl:comment>
						var x = document.getElementById("link");
						x.href="[system-asset]<xsl:value-of select="system-page[name='email-friend-config']/system-data-structure/formPage/path"/>[/system-asset]?myPath="+window.location.href;
					</xsl:comment>
				</script>
				<img src="{system-page[name='email-friend-config']/system-data-structure/icon/path}" alt="Email a friend"/>
			</a>
	</xsl:template>
</xsl:stylesheet>
