b = screen.width;
h = screen.height;

function drucken(){
        if (window.print)
                window.print()
        else
                window.alert(unescape("Leider nicht m%F6glich"))
}

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 open_windowrez(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=1,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 newwin(url){
theOpts="toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1"
mywin = window.open(url,"denios",theOpts);
if ( ! document.all ) {
        mywin.captureEvents(Event.BLUR);
        mywin.onBlur = catchBlur;
}
mywin.focus();
}

function goTo(url,url2){
        //alert(opener);
        if(typeof opener != "undefined" && opener != null){
        //alert(opener.location);
        opener.location.href=url;
        //return true; //alle true und false Angaben stören IE6
        }
        else {
        //alert(url);
        if(typeof opener == "undefined" || opener == null){
        //alert(opener);
        w=window.open(url2);
        w.focus();
        //return false;
        }
        }
}

// Wenn das Hauptfenster geschlossen wurde, soll die URL im neuen Fenster öffnen:
function goToUrl(url){
        //alert(opener);
        if(typeof opener != "undefined" && opener != null){
        //alert(opener.location);
        opener.location.href=url;
        //return true; //alle true und false Angaben stören IE6
        }
        else {
        //alert(url);
        if(typeof opener == "undefined" || opener == null){
        //alert(opener);
        w=window.open(url);
        w.focus();
        //return false;
        }
        }
}


function leaveSite(url){
        // alert(url);
  window.open(url);
}

/* 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;
}