//
// Version 1.0
//

//------------------------------------------------------------------------------
//
// Function to add page to bookmark. If the '#' is used as a dummy link, for
// example, when creating a popup window, it is removed from the end of the uri.
//
// args: none
//
// rtns: none
//
//------------------------------------------------------------------------------
function bookmarkPage()
{
   if( window.external )
   {
      var uri = document.location.href;
      var pageTitle = document.title;
      if( uri.lastIndexOf("#") == uri.length - 1 )
      {
         uri = uri.substring(0,uri.length-1);
      }
      window.external.addFavorite(uri,pageTitle);
   }
   else
   {
      alert("Your browser does not support this feature.");
   }
}
