
function saveClick(x, y) {
  var url = document.URL;
  var w = screen.width;
  var h = screen.height;


  var temp = new Image(1,1);
  temp.src = "http://thief.ac-host.net/heatmap/click.php" + 
                    "?x=" + x + 
                    "&y=" + y + 
                    "&w=" + w + 
                    "&h=" + h + 
                    "&url=" + url + 
                    "&site=" + siteName;
                    
  temp.onload = function() { return; }  
}

document.onmousedown  = function(event) {
  if(event.which == 1) {
    heatmap_x = event.clientX;
  	heatmap_y = event.clientY;
  	
  	saveClick(heatmap_x, heatmap_y);
  }
}
