
var actContentID=1;function loadContent(cID){document.getElementById('loader').style.visibility='visible';var oldContentID=actContentID;actContentID=cID;deliteBtn(oldContentID);performAjaxQuery(cID);}
function hiliteBtn(bID){var filePath=document.getElementById(bID).src;var fileType=filePath.substr(filePath.lastIndexOf(".")+1,3);var btnImg="pix/interface/buttons/btn"+bID+"over."+fileType;document.getElementById(bID).src=btnImg;}
function deliteBtn(bID){if(bID!=actContentID){var filePath=document.getElementById(bID).src;var fileType=filePath.substr(filePath.lastIndexOf(".")+1,3);var btnImg="pix/interface/buttons/btn"+bID+"normal."+fileType;document.getElementById(bID).src=btnImg;}}
function testsieger(){document.location.href='docs/pdf/dws/Sonderdruck_FocusMoney-3.pdf';}
function fondsdepotplus(){document.location.href='/index.php?ch=fondsdepotplus';}
function abgeltungssteuer(){document.location.href='/index.php?ch=roadshow';}
function performAjaxQuery(cID){req=false;if(window.XMLHttpRequest&&!(window.ActiveXObject)){try{req=new XMLHttpRequest();}catch(e){req=false;}}else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){req=false;}}}
if(req){var url="lib/php/dws/index.php?contentID="+cID;req.onreadystatechange=xmlStatusChanged;req.open("GET",url,true);req.send("");}else{alert("Das XML-Objekt konnte nicht initialisiert werden!");}}
function xmlStatusChanged(){if(req.readyState==4){if(req.status==200){document.getElementById('content').innerHTML=req.responseText;document.getElementById('loader').style.visibility='hidden';}else{document.getElementById('content').innerHTML="Fehler beim Laden des Inhalts! (HTTP-Error: "+req.status+","+req.statusText+" )";}}}
function handleDWSFaq(qID){var id=qID.substr(qID.lastIndexOf("_")+1,2);var element="dws_answer_"+id;var actVis=document.getElementById(element).style.display;if(actVis=='none'||actVis=='')
{document.getElementById(element).style.display='block';}
else
{document.getElementById(element).style.display='none';}}