var ajax_stat=0;

function ajaxMoreContent(numer_HW)
{
/*ajax_stat=1;
var xmlhttp;
if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  //alert("Your browser does not support XMLHTTP!");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4 && ajax_stat==1)
  {
  //if(groupx==0) document.getElementById(numer_HW+"").innerHTML=xmlhttp.responseText;
  //else document.getElementById(numer_HW+"_group").innerHTML=xmlhttp.responseText;
  document.getElementById(numer_HW+"").innerHTML=xmlhttp.responseText;
  }
}
var url="ajax_hw.php?nr="+numer_HW+"&sid="+Math.random();
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
*/
}
var index_div=0;


function ajaxMoreUser(numer_user, event)
{
var xmlhttp;
ajax_stat=1;

var offsetX=5;
var offsetY=5;
//alert(screen.width);

var x=event.clientX+offsetX;
var y=event.clientY+offsetY;
if(document.body.clientWidth<(x+400))
{
	x=x-270;
}

if(document.documentElement.clientHeight<(y+200))
{
	y=y-200;
}

if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  //alert("Your browser does not support XMLHTTP!");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4 && ajax_stat==1)
  {
	document.getElementById("user_ajax").innerHTML=xmlhttp.responseText;
	document.getElementById("user_ajax").style.top=y+"px";
	document.getElementById("user_ajax").style.left=x+"px";
  }
}
var url="ajax_user.php?id="+numer_user+"&sid="+Math.random();
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

