function w3perl_tag_log(url) {

    //    date_now = new Date();
    //date_offset = -date_now.getTimezoneOffset()/60;
    //if (date_offset<10) {date_offset = "0" + date_offset}
    refer = document.referrer;
    agent = navigator.userAgent;
    //h = date_now.getHours();
    //if (h<10) {h = "0" + h}
    //m = date_now.getMinutes();
    //if (m<10) {m = "0" + m}
    //s = date_now.getSeconds();
    //if (s<10) {s = "0" + s}
    //date = h+':'+m+':'+s;
    file = document;

    // Screensize and color depth
    screensize = screen.width+"x"+screen.height;
    if (navigator.appName != "Netscape") { 
	color = screen.colorDepth; 
    } else {
	color = screen.pixelDepth;
    }
    java = navigator.javaEnabled();

    // Try to extract title from document tags
    title = document.title;

    // Build url
    src = url;
    src += '?url='+escape(document.location.pathname+document.location.hash+document.location.search)+'&title='+escape(title);
    src += '&site='+document.location.hostname;
    src += '&screen='+screensize+'&color='+color+'&java='+java;
    //    src += '&date='+date+'&offset='+date_offset;
    //    src += '&offset='+date_offset;
    src += '&agent='+escape(agent)+'&referer='+escape(refer);

    document.write('<img src="'+src+'" alt="" style="display:none">\n');
    //    alert("TOTO "+document.location.pathname);
}
// Use php or cgi script

w3perl_tag_log("/w3perl/resources/tag_log.php");

//href : the whole URL string
//protocol : http:, shttp:, file: etc.
//host : host name and port number (if presented)
//hostname : host name (if no post number, then == host)
//port : port number
//pathname : all between host and including the actual http page
//hash : anchor mark (what follows # sign)
//search : CGI request (what follows ? sign)
//document.lastModified