function drucken(){
	if (window.print)
		window.print()
	else
		window.alert("Leider nicht möglich :-(")
}

function cgd_print() {
    if (document.all) {
        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_PROMPTUSER);
            WebBrowser1.outerHTML = "";
    } else {
        self.print();
    }
}

function open_windowall(url,x,y)
{
ww = x;
hw = y;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}

function open_windowscr(url,x,y)
{
ww = x;
hw = y;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}

function catchBlur(Ereignis)
{
if ( ! document.all ) mywin.focus();
else mywin.close();
}

function open_window(url)
{
ww = 603;
hw = 640;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}


function open_window2(url)
{
ww = 413;
hw = 665;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}

function open_window3(url)
{
ww = 380;
hw = 220;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}

function open_window4(url)
{
ww = 540;
hw = 487;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}

function open_window6(url)
{
ww = 400;
hw = 320;
w = parseInt(screen.width);
h = parseInt(screen.height);
w2 = (w-ww)/2;
h2 = (h-hw)/2;
theOpts="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+ww+",height="+hw+",screenX="+w2+",screenY="+h2+",left="+w2+",top="+h2;
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.resizeTo(ww,hw);
mywin.focus();
}

function catchBlur(Ereignis)
{
if ( ! document.all ) mywin.focus();
else mywin.close();
}

/* window.onerror is an event handler for error events sent to the window. The example "window.onerror = null;"
 prevents error dialogs from displaying-which is the window's normal behavior-by overriding the default event handler for error events that go to the window. */
window.onerror = SymError;

/* Mit return true wird erreicht, dass der Fehler im Browser nicht angezeigt wird. Mit dem Rückgabewert false würden Sie bewirken, dass der Browser den Fehler anmeckern würde. */
function SymError()
{
  return true;
}


