
function det(i){

	var elem = document.getElementById('bbb');
	elem.style.display = 'block';
	elem.innerHTML = '';

	elem.style.top = document.body.offsetHeight / 2 - 100;
	elem.style.left = document.body.offsetWidth / 2 - 100;

	xmlHttp = GetXmlHttpObject();
	if(xmlHttp==null) return;

	xmlHttp.onreadystatechange = function(){
		if (xmlHttp.readyState==4){
			document.getElementById("bbb").innerHTML = xmlHttp.responseText;
		}
	};
	xmlHttp.open("GET", 'details.php?i=' + i, true);
	xmlHttp.send(null);
}

function cw(){
	var elem = document.getElementById('bbb');
	elem.style.display = 'none';
}
//-----------------------------------------------------------------------------
function GetXmlHttpObject(){
	var xmlHttp = null;
	try{xmlHttp=new XMLHttpRequest();}
	catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
  	catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
   catch(e){return null;}}}
	return xmlHttp;
}
