function resizeScrollableDiv() { 
	var viewportHeight;
	
	// the more standards compliant browsers (mozilla/netscape/opera/IE7) 
	// use window.innerWidth and window.innerHeight
	
	if (typeof window.innerWidth != 'undefined') {
		viewportHeight = window.innerHeight;
	}
	
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	
	else if (	typeof document.documentElement != 'undefined' && 
				typeof document.documentElement.clientWidth != 'undefined' && 
				document.documentElement.clientWidth != 0) {
		viewportHeight = document.documentElement.clientHeight
	}
	
	// older versions of IE
	
	else {
		viewportHeight = document.getElementsByTagName('body')[0].clientHeight
	}
	
	var pageMargin = 20;
	var headerDiv = 109;
	var footerLineDiv = 7; 
	
	var scrollableDivHeight = viewportHeight - pageMargin - headerDiv - footerLineDiv;
	var scrollableDiv = document.getElementById('scrollable');
	
	var contentNaviWrapperDiv = document.getElementById('contentNaviWrapper');
	var contentWrapperDiv = document.getElementById('contentWrapper');
	scrollableDiv.style.height = scrollableDivHeight + 'px';
/*	alert(contentNaviWrapperDiv);
	alert(contentNaviWrapperDiv.offsetHeight);
	alert(scrollableDivHeight);*/
	if(contentNaviWrapperDiv.offsetHeight < scrollableDivHeight) {
	//	alert('setze contentNaviWrapperHeight');
		contentNaviWrapperDiv.style.height = scrollableDivHeight + 'px';
//		alert('setze contentWrapper height');
		var contentWrapperDivHeight = scrollableDivHeight - 74;
		//alert(contentWrapperDivHeight);
		contentWrapperDiv.style.height = contentWrapperDivHeight + 'px';
	}
} 

function maskMail (ename, dname, etext, esubject, ebody) { 
	var apre = "<a href='mailto:"; 
	var asubject = "?subject="; 
	var abody = "&body="; 
	var apost = "' class=\"email_link\">"; 
	var aend = "</a>"; 
	var at = "@"; 
	var leer = "<a>"; 
	
	if ((dname == "") ||(ename == "")) { 
		document.write(leer);  
		document.write(leer + aend); 
	} else if ((etext == "") || (etext == null)) { 
		document.write(apre + ename + at + dname + apost); 
		document.write(ename + " AT " + dname + aend); 
	} else if ((esubject == "") || (esubject == null)) { 
		document.write(apre + ename + at + dname + apost); 
		document.write(etext + aend); 
	} else if ((ebody == "") || (ebody == null)) { 
		document.write(apre + ename + at + dname + asubject + esubject + apost);  
		document.write(etext + aend); 
	} else { 
		document.write(apre + ename + at + dname + asubject + esubject + abody + ebody + apost);  
		document.write(etext + aend); 
	} 
}  
