
function mgb_wp_bookmark_popup(service, url, title)
{
   var servUrl;
   var o = new Object();
   switch(true){
   case service == "delicious":
     servUrl = "http://del.icio.us/post?v=4&noui&jump=close&url=" + url + "&title=" + title;
     break;

   case service == "digg":
     servUrl = "http://digg.com/remote-submit?phase=2&url=" + url + "&title=" + title;
     break;

   case service == "reddit":
     servUrl = "http://reddit.com/submit?url=" + url + "&title=" + title;
     break;

   case service == "facebook":
     servUrl = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + title;
     break;

   case service == "stumbleupon":
     servUrl = "http://www.stumbleupon.com/submit?url=" + url + "&title=" + title;
     break;

   default:
     break;
   };
   
   window.open(servUrl, "win" + new Date().getTime(), "toolbar=0,scrollbars=1,status=0,menubar=0,resizeable=1,width=700,height=373,top=100,left=100,location=0");

   return false;
};

function mgb_wp_bookmark_popup_2(url)
{
   window.open(url, "win" + new Date().getTime(), "toolbar=0,scrollbars=1,status=0,menubar=0,resizeable=1,width=700,height=373,top=100,left=100,location=0");

   return false;
};

