// FUNKTION UM EXTERNES FENSTER/ POPUP ZU ÖFFNEN

function openWindow(url, target, width, height, centered) {
    if (centered == true && (navigator.appName.indexOf("Netscape") > -1 && parseInt(navigator.appVersion.substring(0,1)) >=4 )
        || (navigator.appName.indexOf("Microsoft Internet Explorer") > -1 && parseInt(navigator.appVersion.substring(0,1)) >=4 )) {
        var w = (screen.width/2)-(width/2); 
        var h = (screen.height/2)-(height/2); 
        var parameter = "scrollbars=yes,resizable=1";
        
        if (width != 0) {
            parameter += ',width=' + width + ', screenX=' + w + ',left=' + w;
        }
        if (height != 0) {
            parameter += ',height=' + height + ', screenY=' + h + ',top=' + h;
        }
    } else {
        var parameter = "scrollbars=yes,resizable=1";
        if (width != 0) {
            parameter += ',width=' + width;
        }
        if (height != 0) {
            parameter += ',height=' + height;
        }
    }
    var win = window.open(url, target, parameter);
    if (win) {
        win.focus();
    }
}

function mi(cell,color) { cell.bgColor = (color) ? color:'#D8D7DD'; }
function mo(cell,color) { cell.bgColor = (color) ? color:'#FFFFFF'; }

//FUNKTION FÜR SPRACHAUSWAHL

function toggle() {
	document.getElementById("SwitchLang").style.visibility = "visible";
	if(document.getElementById("SwitchLang").style.display == "none" ) {
		document.getElementById("SwitchLang").style.display = "";
	}
	else {
		document.getElementById("SwitchLang").style.display = "none";
	}
}
