function initAnchorTags() {
    var anchorTags = document.getElementsByTagName("a");
    for (var i = 0; i < anchorTags.length; i++) { 
        var anchorTag = anchorTags[i];
        if (anchorTag.addEventListener){
            anchorTag.addEventListener('click', clickOnLink, false);
            anchorTag.addEventListener('contextmenu', clickOnLink, false);
        } else if (anchorTag.attachEvent){ // IE
            anchorTag.attachEvent('onclick', clickOnLink);
            anchorTag.attachEvent('oncontextmenu', clickOnLink);
        }
    }
}

function clickOnLink(ev){
    if(!ev) {
        ev = window.event;
    }
    href = ev.currentTarget;
    if(!href) {
        href = ev.srcElement;
    } 
    jx.load(TYPO3_SITE_URL+'index.php?eID=dp_statistics&href='+href, function(data){});
}