/* Verschiedene JavaScript Funktionen */

	

				
function adjust_popup()
{
        var w, h, fixedW, fixedH, diffW, diffH;

        if (document.all) {
                fixedW = document.body.clientWidth;
                fixedH = document.body.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.body.clientWidth;
                diffH = fixedH - document.body.clientHeight;
        } else {
                fixedW = window.innerWidth;
                fixedH = window.innerHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - window.innerWidth;
                diffH = fixedH - window.innerHeight;
        }
        w = fixedW + diffW;
        h = fixedH + diffH;
        if (h >= screen.availHeight) w += 16;
        if (w >= screen.availWidth)  h += 16;
        w = Math.min(w,screen.availWidth);
        h = Math.min(h,screen.availHeight);
        window.resizeTo(w,h);
        window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
}

	function Quickhelp(){
	breite = 750;
	hoehe = 500;
 	x = (screen.width/2-breite/2); 
 	y = (screen.height/2-hoehe/2);
 	position='screenX='+x+',screenY='+y+',left='+x+',top='+y;
 	F1 = open('assets/quickhelp/index.php','quickhelp','width='+breite+',height='+hoehe+',resizable=yes,scrollbars=yes,status=no,'+position);
	}



