function getWindowWidth() {
	if (window.innerWidth) {
		return window.innerWidth;
	}
	else if (document.body && document.body.offsetWidth) {
		return document.body.offsetWidth;
	}
	else {
		return 0;
	}
}

function getWindowHeight() {
	if (window.innerHeight) {
		return window.innerHeight;
	}
	else if (document.body && document.body.offsetHeight) {
		return document.body.offsetHeight;
	}
	else {
		return 0;
	}
}



function fit2Window () {

		Hoehe = getWindowHeight();

		if ((navigator.appName)=="Microsoft Internet Explorer") {
			contentHoehe = Hoehe-226;
		}
		else {
			contentHoehe = Hoehe-242;
		}
		document.getElementById('contentarea').style.height = (contentHoehe) + 'px';
	}

function fit2WindowGuestBook () {

		Hoehe = getWindowHeight();

		if ((navigator.appName)=="Microsoft Internet Explorer") {
			contentHoehe = Hoehe-242;
			document.getElementById('contentarea').style.width = '950px';
		}
		else {
			contentHoehe = Hoehe-242;
		}
		document.getElementById('contentarea').style.height = (contentHoehe) + 'px';
	}

	

function IEguestbookSizeFix () {

		contentArea = document.getElementById('contentarea');
		initialHeight = contentArea.style.height;
		initialWidth = contentArea.style.width;


		if ((navigator.appName)=="Microsoft Internet Explorer") {
			contentArea.style.height = (initialHeight-10) + 'px';
			contentArea.style.width = (initialWidth-14) + 'px';

		}	
	}


