function ajax(value)
{
	if(window.XMLHttpRequest){		xmlhttp=new XMLHttpRequest();	}
	else{		xmlhttp=new ActiveXObject(Microsoft.XMLHTTP);	}
	var serverpage="serverpage.php?val="+value;	xmlhttp.open("GET",serverpage); xmlhttp.send();
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4 && xmlhttp.status==200){	document.getElementById('status').innerHTML=xmlhttp.responseText;	}
		else{	document.getElementById('status').innerHTML='<img src="ajax-loader.gif" />';	}
	}
}
