// JavaScript Document
function createLink (link_url,link_title, link_type)
{
	
        link_url = window.location.href;
        link_url = link_url.substring(0,link_url.length-1);

        var u = encodeURIComponent(link_url);
	var t = encodeURIComponent(link_title);

	
	if ( link_type == "digg" )
		targetUrl = 'http://digg.com/submit?phase=2&url=' + u + '&title=' + t;
	
	else if ( link_type == "fb" )
		targetUrl = 'http://www.facebook.com/share.php?u=' + u + '&amp;t=' + t;
		
	else if ( link_type == "delicious" )
		targetUrl = 'http://delicious.com/post?v=5&amp;url=' + u + '&amp;title=' + t;

	else if ( link_type == "myspace" )
		targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + t + '&c=<p>www.malaco.fi - ' + t + '</p>' + '&u=' + u + '&l=3';

	window.open(targetUrl);
}

$(document).ready(function() {
  $('#goback').click(function() {
    history.back();
    return false;
  });
});





