var weiterUrl;
function showWeiterleitung(url){
	weiterUrl = url;
	var textElement = document.getElementById("textElement");
	textElement.style.visibility = "hidden";
	
	var weiter = document.getElementById("hiddenElement");
	weiter.style.visibility = "visible";
	window.scrollTo(0, 0);

	timeout = window.setTimeout("weiter(weiterUrl)", 5000);
}

function weiter(url){
	location.replace('index.html');
	window.location.href = url;
}

function showSubmenuDepot(){
	document.getElementById("submenuDepot").style.visibility = "visible";
}

function hideSubmenuDepot(){
	document.getElementById("submenuDepot").style.visibility = "hidden";
}

function showSubmenuTools(){
	document.getElementById("submenuTools").style.visibility = "visible";
}

function hideSubmenuTools(){
	document.getElementById("submenuTools").style.visibility = "hidden";
}

function toggleTextFaqs(val){
	for (i=1;i<70;i++){
		if(document.getElementById('dl'+i)){
			var textDiv		= document.getElementById('t'+i);
			var headlineTr	=	document.getElementById('dl'+i);
			var link		= document.getElementById('l'+i);

			if(i!=val){
				textDiv.style.display="none";
				headlineTr.style.backgroundColor	="#ffffff";
			}else{
				textDiv.style.display="block";
				headlineTr.style.backgroundColor	="#f5f5f5";
			}
		}
	}
}

function jsOpenDatadienstRechnerPopup(iDDCalcID){
	var strDDUrl = "http://cominvest.datadienst.de:80/vfs/cominvest/online/b2c/Rechenmodule.jsp";

	if( typeof iDDCalcID == "undefined" || iDDCalcID < 2 ){
		iDDCalcID = 1;
	}
	strDDUrl += "?id=" + iDDCalcID;
	modul_window = window.open(	strDDUrl,'modul_window','width=630,height=564,resizable=no,scrollbars=no,toolbar=no,menubar=no,status=no,directories=no');
	modul_window.focus();
}