function isMSIE_Used(){
    isIE = false;
    if(document.all){
        if(navigator.userAgent.toLowerCase().indexOf("msie") >= 0){
            isIE = true;
        }
    }
    return isIE;
}


function Fensterweite() {
	if (window.innerWidth) {
			width = window.innerWidth;
	}
	else if (document.body && document.body.offsetWidth) {
		return document.body.offsetWidth;
	}
 	return 0;
}


function Fensterhoehe() {
	if (window.innerHeight) {
		return window.innerHeight;
  	} 
	else if (document.body && document.body.offsetHeight)  {
		return document.body.offsetHeight;
	}
 	return 0;
}


function neuAufbau () {
	if (Weite != Fensterweite() || Hoehe != Fensterhoehe()) {
		/*
		location.href = location.href;
		*/
		window.history.go(0);
	}
}


function changeHeightInMSIE() {
	if(isMSIE_Used() == true) {	
		var IEHoehe = document.body.offsetHeight;
		document.all.divContent.style.height = IEHoehe - 167;
		document.all.divmeneuLinks.style.height = IEHoehe - 129;
	}
}

function changeCSSId(obj,nid) {
	if(isMSIE_Used() == true) {
		obj.id=nid;
	}
}

function enablePage() {
	if( isMSIE_Used() ) {
		document.all.disablePage.style.width = 0;
		document.all.disablePage.style.height  = 0;
	}
	else {
		var div = document.getElementById("disablePage");
		div.style.width = 0;
		div.style.height = 0;
		var ahref = document.getElementById("pageDisabled");
		ahref.style.top = -110 + "px";
	}
}

function disablePage() {
	if( isMSIE_Used() ) {
		document.all.disablePage.style.width = 100 + "%"
		document.all.disablePage.style.height = 100 + "%"
	}
	else {
		var div = document.getElementById("disablePage");
		div.style.width = 100 + "%"
		div.style.height = 100 + "%"
		var ahref = document.getElementById("pageDisabled");
		ahref.style.top = 10 + "px";	
	}
}		