var xmlHttp = new XMLHttpRequest();
function getpermetion()
{
	xmlHttp.open('get','getpermation.php?permat='+ document.adduserform.permation.value);

	xmlHttp.onreadystatechange = handleInfo2;
	xmlHttp.send(null);
}
function handleInfo2()
{
	if(xmlHttp.readyState == 1)
	{
		document.getElementById('main').innerHTML = '<img src="images/loading-anim.gif">';
	}

	else if(xmlHttp.readyState == 4)
	{
		var response = xmlHttp.responseText;
		document.getElementById('main').innerHTML = response;
	}
}



