function CopyToClipboard(Texto){
	if (window.clipboardData)  //IE
	{
		window.clipboardData.setData("Text", Texto);
	}
	else if (window.netscape) 
	{
	/*
		NETSCAPE
		It doesn't work because of the line right below the try statement. 
		You need to sign the script. :( Bleagh Netscape...
	*/
	}
	else
	{
		alert("No window.netscape either.");
	}
	//alert("Following info was copied to your clipboard:\n\n" + Texto);
	return false;
}

function EscreveLink(LinkFinal)
{
	if (document.all) //IE
	{
		
		document.write('<a onclick="return CopyToClipboard(\'' + window.location.href + '/../'+ LinkFinal + '\');" href="#">Clique aqui para copiar o link</a>');
	}
	else //nao eh IE
	{
		document.write('<a href="' + LinkFinal + '">Link para esse post</a>');
	}
}


