var target

function bookmark(target) { 

     currentURL = encodeURIComponent(location.href);
     currentTitle = encodeURIComponent(document.title);
     
     if( currentURL == "http://www.suchmaschinen-doktor.de/index.html" ){ currentURL = "http://www.suchmaschinen-doktor.de/"; }
     else if( currentURL == "http://pagerank.suchmaschinen-doktor.de/index.html" ){ currentURL = "http://pagerank.suchmaschinen-doktor.de/"; }

     switch (target) {
          case "del.icio.us":
               window.open("http://del.icio.us/post?url="+currentURL+"&title="+currentTitle);
          break;
          case "Furl":
               window.open("http://www.furl.net/storeIt.jsp?u="+currentURL+"&t="+currentTitle);
          break;
          case "MrWong":
               window.open("http://www.mister-wong.de/index.php?action=addurl&bm_url="+currentURL+"&bm_description="+currentTitle);
          break;
          case "Google":
               window.open("http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk="+currentURL+"&title="+currentTitle);
          break;
     }

}
