function urlencode(text) {
text= text.replace(/\//g,"%2F");
text= text.replace(/\?/g,"%3F");
text= text.replace(/=/g,"%3D");
text= text.replace(/&/g,"%26");
return text;
}

client_id  = 1;

resolution = window.screen.width      + 'x' +
             window.screen.height     + 'x' +
             window.screen.colorDepth;

document.write('<img src="http://www.atlaz.net/log/image.php?' +
               'client_id='              + client_id         + '&' +
               'document='               + urlencode(document.URL)      + '&' +
               'referer='                + urlencode(document.referrer) + '&' +
               'resolution=' + resolution        +
               '" alt="AtlazBug" width="0" height="0" />'
              );
