function hclick(d) {
    var x;
    if (window.XMLHttpRequest) {
        x = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        x = new ActiveXObject("Microsoft.XMLHTTP");
    } else {
        return true;
    }

    x.onreadystatechange=function() {
        if(x.readyState==4) {
            txt = x.responseText;
            if (txt!='') {
                alert(txt);
            }
        }
    }

    x.open("GET", "stat.php?d="+d, true);
    x.send(null);
}
