function init(){	
	window.setInterval("displayClock()",5000);
	displayClock();
	resizeWorkspace();
}

function displayClock(){
	var cd=document.getElementById("clockdisplay");
	if(cd){
		var jetzt = new Date();
		var Std = jetzt.getHours();
		var Min = jetzt.getMinutes();
		var StdAusgabe = ((Std < 10) ? "0" + Std : Std);
		var MinAusgabe = ((Min < 10) ? "0" + Min : Min);
		cd.innerHTML = StdAusgabe+':'+MinAusgabe;
	}
	resizeWorkspace();
}

function getWindowHeight(){
	var h=0;
	if(window.innerHeight){
		h=window.innerHeight;
	}else{
		if(document.documentElement){
			h=document.documentElement.clientHeight;
		}else{
			if(document.body){
				h=document.body.clientHeight;
			}
		}
	}
	if(h==0)
		h=1000;
	return h;
}

function resizeWorkspace(){
	var box=document.getElementById("buehne");
	if(box){
		
		box.style.height=getWindowHeight()-20;
		
	}	
	box=document.getElementById("boxarea");
	if(box){
		box.style.height=getWindowHeight()-150;
	}
	box=document.getElementById("pagecontent");
	if(box){
		box.style.height=getWindowHeight()-150;
	}
}
