﻿
        function fnAddToFavorites()
        {
         var sUrl = window.location.href;          
         var sTitle = document.title;      
         if (window.sidebar) { // firefox
              window.sidebar.addPanel(sTitle, sUrl,"");
         } else if( document.all ) { //MSIE
                window.external.AddFavorite( sUrl, sTitle);
         } else {
               alert("Sorry, your browser doesn't support this at the moment");
         }
        }        
    
    function addBookmark(title, url) 
    {
        var sUrl = window.location.href;          
        var sTitle = document.title;      
        if (window.sidebar) { // firefox
              window.sidebar.addPanel(sTitle, sUrl,"");
        } else if( document.all ) { //MSIE
                window.external.AddFavorite( sUrl, sTitle);
        } else {
               alert("Sorry, your browser doesn't support this at the moment");
        }
   }
 
    
   function mailpage()
   {
    mail_str = "mailto:?subject= dotnetUncle.com: " + document.title;
    mail_str += "&body= I would like you to checkout this link " + document.title;
    mail_str += ". You should check this out at, " + location.href; 
    location.href = mail_str;
   }
  

