
function insertBookmarkList() {
 // ------------------------------------------ //
 // Version: This is version 1.1.4             //
 // Script by Claus Schmidt of http://clsc.net //
 //                                            //
 // Copyright: You have the right to copy this //
 // in fact you have to if you want to use it. //
 //                                            //
 // License: Creative commons,                 //
 //          Attribution-ShareAlike 2.0        //
 // ------------------------------------------ //


 // ------------------------------------------ //
 // To leave out a bookmark service just       //
 // comment out the relevant line below. You   //
 // do that by putting two slashes ("//") to   //
 // the left of "$theButtonList".              //
 //                                            //
 // For an example, look for the entry called  //
 // "Threadwatch" (this one will not be shown  //
 // unless you remove the slashes "//" to the  //
 // left of "$theButtonList".                  //
 //                                            //
 // You may also just delete the full two      //
 // lines for each service you don't need.     //
 //                                            //
 // Enjoy.                                     //
 // ------------------------------------------ //


 // define common stuff
    $theMessage = "Submit this tool to:";
    //$theURL = encodeURIComponent(location.href); // location.href;
    $theURL = 'http://www.ranks.nl/tools/spider.html';
    $theTitle = encodeURIComponent(document.title) // document.title;
    $theDescription = "please write something here";

    if(window.getSelection)
    {
        $theDescription = encodeURIComponent(window.getSelection());
    }
    else if (document.getSelection)
    {
        $theDescription = encodeURIComponent(document.getSelection());
    }
    else if (document.selection && document.selection.createRange)
    {
        txt = document.selection.createRange().text;
        $theDescription = encodeURIComponent(txt);
    }
    else if(document.selection)
    {
        txt=document.selection.createRange().text;
        $theDescription = encodeURIComponent(txt);
    }

 //button list begin
    var $theButtonList = '<p><strong>' + $theMessage + '</strong></p>';
    $theButtonList += '<ul class="theBookmarkButtons">';
 // del.icio.us
    $theButtonList += '<li><a href="http:\/\/del.icio.us\/post?url=' + $theURL + '&amp;title=' + $theTitle + '">Del.iCio.us<\/a><\/li> ';
  // digg
    $theButtonList += '<li><a href="http:\/\/digg.com\/submit?phase=2&amp;url=' + $theURL + '">Digg<\/a><\/li> ';

    $theButtonList += '</ul>';

 // write list to page
   document.write($theButtonList);
}

