function Browser() {
	var b = navigator.appName;
	if(b == "Netscape") this.b = "ns";
	else if(b == "Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.version = navigator.appVersion;
	this.v = parseInt(this.version);
	this.ns = (this.b == "ns" && this.v >= 4);
	this.ns4 = (this.b == "ns" && this.v == 4);
	this.ns5 = (this.b == "ns" && this.v == 5);
	this.ie = (this.b == "ie" && this.v >= 4);
	this.ie4 = (this.version.indexOf('MSIE 4') > 0);
	this.ie5 = (this.version.indexOf('MSIE 5') > 0);
	this.ie55 = (this.version.indexOf('MSIE 5.5') > 0);
	this.dom = ((document.createRange && (document.createRange().createContextualFragment)) ? true : false);
	this.min = (this.ns || this.ie);
	var ua = navigator.userAgent.toLowerCase();
	if (ua.indexOf("win") >- 1) this.platform="win32";
	else if (ua.indexOf("mac") >- 1) this.platform="mac";
	else this.platform = "other";
}
is=new Browser()


function drucken() {
  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>';

  if( parseFloat( navigator.appVersion ) < 4 ){      
   alert('Ihr Browser unterstützt diese Funktion nicht. Sie können diese Seite mit der Tastenkombination "Ctrl" + "P" ausdrucken.');
  }
  else {
    if((document.layers) || (document.getElementById)) { window.print() } 

    else {        
      self.focus();
      window.onerror = stopError          
      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
      WebBrowser1.ExecWB( OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER );
      WebBrowser1.outerHTML= '';
    }
  }
}

function stopError() {return true;}