
    function initClickTracking ()
    {   
        for( i=0; i<document.links.length; i++ )
        {
            objLink = document.links[i];
            objLink.onclick = function ()
                              {
                                  randomIMG = new Image();
                                  strPage = encodeURI( document.location );
                                  strHref = encodeURI( this.href );
                                  randomIMG.src = 'trackClick.php?page=' + strPage + '&href=' + strHref;
                              }
        }
    }
    
    window.onload = initClickTracking;
    
