function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
 if (navigator.appVersion.indexOf("MSIE")==-1){
c_x=9; c_y=-152;
}
else{
c_x=9; c_y=-152;
}
 
  x=Math.floor((tempX+c_x)/10);
  y=Math.floor((tempY+c_y)/10);
  if(x<1) x=1; if(x>100) x=100;
  if(y<1) y=1; if(y>100) y=100;
  //document.Show.MouseX.value = x;
  xus=x;
  yus=y;
  //document.Show.MouseY.value = y;
  window.status="x="+x+" y="+y;
  return true
}

function clickus()
{
//x=document.Show.MouseX.value;
//y=document.Show.MouseY.value;
x=xus;
y=yus;

//qq=confirm("x="+x+" y="+y);
if(x>=0 && x<=100 && y>=0 && y<=100) {
path="index.php?page=buy&x="+x+"&y="+y;
window.location.href = path;
}
}

