function banUser(ip)
{
	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)
		{
			alert(xmlhttp.responseText);
		}
	}
	xmlhttp.open("GET", "banControls.php?method=ban&ip=" + ip, true);
	xmlhttp.send(null);
}