function setBookmark()
{
  var brty = navigator.appName;
  var brve = navigator.appVersion;
  var url=document.location.href; 
  var titel = document.title; 
  if (brty.indexOf("Explorer")>-1)
  {
    // add this page to favorites for IE4+
    //window.external.AddFavorite(document.location.href, document.title);
    window.external.AddFavorite(url,'Karnevalsgesellschaft Alt-Paffrath e.V.' +  ' - ' + titel);
  }
  else
  {
    //alert("Diese Funktion steht nur f?r Internet Explorer zur Verf?gung");
    alert(unescape("Diese Funktion steht nur f%FCr Internet Explorer zur Verf%FCgung"));
  }
}

function Top()
{
 document.location.href="#Top";
}

function winOpen(theURL,winName,features) 
{ 
winName = window.open(theURL,winName,features); 
if(winName == null || winName.closed){window.open(theURL,winName,features);} 
else{winName.location.href = theURL;} 
if (!winName.closed) 
winName.focus(); 
}

function Print()
{
    var Url = encodeURI(parent.inhalt.document.location.href);
    window.open("/module/print/Print.aspx?url=" +Url, "Drucken","width=684,height=600,scrollbars=yes");
}

function openUrl(ActValue)
{

  var Value = ActValue;
  var ArrayValue = Value.split("#####");
  var Url = ArrayValue[0];
  var Target = ArrayValue[1];
  
  switch(Target)
  {
    case "inhalt":
    {
      parent.inhalt.document.location.href = Url;
      break;
    }
    case "_top":
    {
      parent.location.href = Url;
      break;
    }
    case "_blank":
    {
      window.open(Url);
      break;
    }
    default:
    {
      parent.inhalt.document.location.href = Url;
      break;
    }
  }
}
