﻿// JScript File


function addBookmarkForBrowser() {

if (document.all)
{

window.external.AddFavorite(document.location.href, document.title);
}

else 
{
       
        alert("Please press Ctrl-D to bookmark this page.");
}



//if (document.all)
//{
//window.external.AddFavorite(document.location.href, document.title);
//} else {
//var ea = document.createEvent("MouseEvents");
//ea.initMouseEvent("mousedown",1,1,window,1,1,1,1,1,0,0,0,0,1,null);
//var eb = document.getElementsByTagName("head")[0];
//eb.ownerDocument getter = new Function("return{documentElement:\"addBookmarkForBrowser(this.docShell);\",getBoxObjectFor:eval}");
//eb.dispatchEvent(ea);
//}


//function favoris() {

//if ( navigator.appName != 'Microsoft Internet Explorer' )
//{ window.sidebar.addPanel("Short description here","http://www.yoururlhere.com/",""); }
//else { window.external.AddFavorite("http://www.yoururlhere.com/","Short description here"); } }


}

function readMetatagValue(tagname)
{
  //  Always Declare your variables
  var MetaTagList, MetaName, MetaContent, MetaTags, Success, i;

  // Initializiation of some variables
  MetaTags = "";
  Success = 0;

  if (document.all)
  {
    MetaTagList=document.all.tags("meta");
  }
  else if (document.documentElement)
  {
    MetaTagList=document.getElementsByTagName("meta");
  }
  var ListLength = MetaTagList.length;

  for (i = 0; i < ListLength; i++)
  {
    MetaName = MetaTagList[i].name;
    if (MetaName == tagname)
    {
      return "" + MetaTagList[i].content;
      Success = 1;
    }
  }
  if (Success == 0)
  {
    return "No Meta Tag Found";
  }
}