// opendoc.js
// copyright oestreicher & wagner

var xleft=0;
var ytop=0;

function onwPers(address) {
        winname = "personen";
        xsize = 555; ysize = 550; xleft = 50; ytop = 50;
   if (is.ie) {
  	timerx = setTimeout("openWinDelay('"+address+"', '"+winname+"', 'yes', 'yes', 'no', 'no', 'no', 'no', "+xsize+", "+ysize+", "+ytop+", "+xleft+")", 400);
   } else {
	openWinDelay(address, winname, 'yes', 'yes', 'no', 'no', 'no', 'no', xsize, ysize, ytop, xleft)
   }
 
}

function onwFAQ(address) {
        winname = "FAQ";
        xsize = 555; ysize = 550; xleft = 50; ytop = 50;
   if (is.ie) {
  	timerx = setTimeout("openWinDelay('"+address+"', '"+winname+"', 'yes', 'yes', 'no', 'no', 'no', 'no', "+xsize+", "+ysize+", "+ytop+", "+xleft+")", 400);
   } else {
	openWinDelay(address, winname, 'yes', 'yes', 'no', 'no', 'no', 'no', xsize, ysize, ytop, xleft)
   }
}

function onwPubl(address) {
	winname = "Publikationen";
	xsize = 555; ysize = 550; xleft = 50; ytop = 50;
   if (is.ie) {
  	timerx = setTimeout("openWinDelay('"+address+"', '"+winname+"', 'yes', 'yes', 'no', 'no', 'no', 'no', "+xsize+", "+ysize+", "+ytop+", "+xleft+")", 400);
   } else {
	openWinDelay(address, winname, 'yes', 'yes', 'no', 'no', 'no', 'no', xsize, ysize, ytop, xleft)
   }
}

function onwPub(address,winname) {	
	xsize = 555; ysize = 550; xleft = 50; ytop = 50;
   if (is.ie) {
  	timerx = setTimeout("openWinDelay('"+address+"', '"+winname+"', 'yes', 'yes', 'no', 'no', 'no', 'no', "+xsize+", "+ysize+", "+ytop+", "+xleft+")", 400);
   } else {
	openWinDelay(address, winname, 'yes', 'yes', 'no', 'no', 'no', 'no', xsize, ysize, ytop, xleft)
   }
}

function onwStaff(address,winname) {
        xsize = 595; ysize = 600; xleft = 50; ytop = 50;
   if (is.ie) {
  	timerx = setTimeout("openWinDelay('"+address+"', '"+winname+"', 'yes', 'yes', 'no', 'no', 'no', 'no', "+xsize+", "+ysize+", "+ytop+", "+xleft+")", 400);
   } else {
	openWinDelay(address, winname, 'yes', 'yes', 'no', 'no', 'no', 'no', xsize, ysize, ytop, xleft)
   }
}

function onwImg(address) {
        winname = "Image";
        xsize = 715; ysize = 550; xleft = 50; ytop = 50;
   if (is.ie) {
  	timerx = setTimeout("openWinDelay('"+address+"', '"+winname+"', 'yes', 'yes', 'no', 'no', 'no', 'no', "+xsize+", "+ysize+", "+ytop+", "+xleft+")", 400);
   } else {
	openWinDelay(address, winname, 'yes', 'yes', 'no', 'no', 'no', 'no', xsize, ysize, ytop, xleft)
   }
}

function openWinDelay(address,winname,resize,scroll,menu,loc,tool,stat,xsize,ysize,ytop,xleft) {
        if (document.layers) {
                eval(winname+' = window.open(address, winname, "resizable="+resize+",scrollbars="+scroll+",menubar="+menu+",location="+loc+",toolbar="+tool+",status="+stat+",width="+xsize+",height="+ysize+",screenY="+ytop+",screenX="+xleft);');
        } else {
                eval(winname+' = window.open(address, winname, "resizable="+resize+",scrollbars="+scroll+",menubar="+menu+",location="+loc+",toolbar="+tool+",status="+stat+",width="+xsize+",height="+ysize+",top="+ytop+",left="+xleft);');
    }
}


function createWindow(cUrl,cName,cFeatures) {
        var xWin = window.open(cUrl,cName,cFeatures)
}

