//--- Frame nachladen
  if(!parent.Hauptframe) 
  	location.href="../frameset.htm?" + location.pathname;
  	
//--- Seite empfehlen
function empfehlen() 
	{
    window.open('../empfehlen/index.php','empfehlung','width=285,height=358,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,copyhistory=0')
	}
		
//--- Website bookmarken		
function showBookmarkHilfe()
	{
	window.open('../images/pic/hilfe.php', 'bookmarking', 'width=500,height=330,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
	}

//--- Drucken
function drucken()
{
if(document.layers) // Abfrage auf Netscape 4
   self.print();
if(document.all) // Abfrage auf MSIE 4
 {
  self.focus();
  var OLECMDID_PRINT = 6;
  var OLECMDEXECOPT_DONTPROMPTUSER = 2;
  var OLECMDEXECOPT_PROMPTUSER = 1;
  var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
  document.body.insertAdjacentHTML('beforeEnd',WebBrowser);
  WebBrowser1.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER);
  WebBrowser1.outerHTML = '';
 }
}

// Anti-Rechtsklick

var message = "";
function clickIE() {
    if(document.all) {
     (message);
     return false;
 }
}
function clickNS(e) {
    if(document.layers || (document.getElementById && !document.all)) {
        if(e.which == 2 || e.which == 3) {
      (message); 
      return false;
  }
 }
}
if(document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = clickNS;
} else {
    document.onmouseup = clickNS;
    document.oncontextmenu = clickIE;
}
document.oncontextmenu = new Function("return false")

// Anti-Markieren

function disableSelection(element) {
    element.onselectstart = function() {
      return false;
    };
    element.unselectable = "on";
    element.style.MozUserSelect = "none";
    element.style.cursor = "default";
}

window.onload = function() {
  //disableSelection(document.getElementById("body"));
  disableSelection(document.body);
}


