function ajax_get_data(db, sid)
{
	url = '/ajax/' + db + '.php?sid=' + sid;
	if (window.XMLHttpRequest)
	{
		xmlhttp=new XMLHttpRequest();
	}
	else
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.open("GET",url,false);
	xmlhttp.send(null);
	document.getElementById(db + '_doc_elem').innerHTML = xmlhttp.responseText;
}
