function handleResponse() {
	if(xhrObj.readyState==4){
		if(xhrObj.status==200){
			f='';
			eval(xhrObj.responseText);
			xhrList.splice(0,1);
			xhrDo();
		}
	}
}
function newXHR(){
	xhrObj=false;
	try{
		xhrObj=new ActiveXObject('Msxml2.XMLHTTP');
	}
	catch(e){
		try{
			xhrObj=new ActiveXObject('Microsoft.XMLHTTP');
		}
		catch(E){
			xhrObj=false;
		}
	}
	if(!xhrObj && typeof XMLHttpRequest!=undefined){
		try{
			xhrObj=new XMLHttpRequest();
		}
		catch(e){
			xhrObj=false;
		}
	}
	if(xhrObj) xhrObj.onreadystatechange=handleResponse;
}
var xhrObj=false;
var xhrList=new Array();
function sndReq(action, positionXrecup, positionYrecup){
		increase++;
		str='http://www.clickonthepixels.com/scripts/ajax.php?action='+action+'&x='+positionXrecup+'&y='+positionYrecup+'&i='+increase;
	if(xhrList.length<1 || xhrList[xhrList.length-1]!=str){
		xhrList.push(str);
		if(xhrList.length<2) xhrDo(str);
	}
}
function xhrDo(){
	if(xhrList.length>0){
		newXHR();
		xhrObj.open('get',xhrList[0]);
		xhrObj.send(null);
	}
}