﻿function inizializza_de(){a=document.getElementsByTagName("a");for(i=0;a[i];i++){if(a[i].className.indexOf("blank")!=-1){a[i].title+=" [es wird ein neues Fenster geoeffnet]";a[i].onclick=function(){window.open(this.href,"_blank","");return false;};a[i].onkeypress=function(e){k=(e)?e.keyCode:window.event.keyCode;if(k==13){window.open(this.href,"_blank");return false;}};}}}function inizializza_it(){a=document.getElementsByTagName("a");for(i=0;a[i];i++){if(a[i].className.indexOf("blank")!=-1){a[i].title+=" [il collegamento apre una nuova finestra]";a[i].onclick=function(){window.open(this.href,"_blank","");return false;};a[i].onkeypress=function(e){k=(e)?e.keyCode:window.event.keyCode;if(k==13){window.open(this.href,"_blank");return false;}};}}}function addHelp(){var strID,objHelp;if(document.getElementById&&document.appendChild&&document.removeChild){var objHelpform=document.getElementById("helped");if(objHelpform!=null){var objAnchors=objHelpform.getElementsByTagName("a");for(var iCounter=0;iCounter<objAnchors.length;iCounter++){if(objAnchors[iCounter].className=="helplink"){strID=getIDFromHref(objAnchors[iCounter].href);objHelp=document.getElementById(strID);objHelp.style.display="none";objAnchors[iCounter].onclick=function(event){return expandHelp(this,event);};objAnchors[iCounter].onkeypress=function(event){return expandHelp(this,event);};objAnchors[iCounter].parentNode.appendChild(objHelp);}}var objOldnode=document.getElementById("helpcontainer");if(objOldnode!=null){objOldnode.parentNode.removeChild(objOldnode);}}objHelpform=null;objHelp=null;objAnchors=null;}}function getIDFromHref(strHref){var iOffset=strHref.indexOf("#")+1;var iEnd=strHref.length;return strHref.substring(iOffset,iEnd);}function expandHelp(objAnchor,objEvent){var iKeyCode;if(objEvent&&objEvent.type=="keypress"){if(objEvent.keyCode){iKeyCode=objEvent.keyCode;}else{if(objEvent.which){iKeyCode=objEvent.which;}}if(iKeyCode!=13&&iKeyCode!=32){return true;}}strID=getIDFromHref(objAnchor.href);objHelp=document.getElementById(strID);if(objHelp.style.display=="none"){objHelp.style.display="block";}else{objHelp.style.display="none";}return false;}function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!="function"){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();};}}
