﻿function DisplayBookmarks(titlelink, url)
{
  var tn = document.createTextNode(titlelink);
  var div = document.createElement('div');
  div.appendChild(tn);
  var html = div.innerHTML;
  var index = html.indexOf('&gt;') +4;
  var title = html.substring(index, html.length - 10);
  var social = '<div style="float:left">';
  social += '<a href="mailto:?body=Thought you might like this: ' + url + '&amp;subject=' + title + '" target="_blank" title = "Email This Article">Email it</a>&nbsp;|&nbsp;';
  social += '<a href="http://digg.com/submit?phase=2&url=' + encodeURIComponent(url) + '&title='+title+'" target="_blank"  title = "Post To Digg">Digg it</a>&nbsp;|&nbsp;';
  social += '<a href = "http://del.icio.us/post?url=' + encodeURIComponent(url) + '&amp;title=' + title + '" target="_blank" title = "Post this article to del.icio.us">Del.icio.us it</a>&nbsp;|&nbsp;';
  social += '<a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;;mkt=en-us&amp;;url=' + encodeURIComponent(url) + '&title='+title+'" target="_blank" title="Post to Windows Live">Live it</a></div>';
  document.writeln(social);
}