// used to retrieve attorney info we wish to display
// in the body column section
//
// item_id: bio_id
// table: from what table
//
// other scripts involved:
// lib/groom_attorney.p, js/xmlhttp.js, attorney-helper.html
//
function getBioInfo(item_id, table, area_id)
{
	// see if we have a valid object
	if (xmlhttp == null)
	{
		alert ("Browser does not support HTTP Requests");
		return;
	}
	// the url we want to access
	var url = "attorneys-helper.html"
	url=url+"?item_id=" + item_id
	url=url+"&table=" + table
	url=url+"&area_id=" + area_id
	url=url+"&sid="+Math.random()

	xmlhttp.open("GET", url, true);
	document.getElementById('attorney_profile').innerHTML = "<p>Searching...</p>";

	// when data is available, update the div
	xmlhttp.onreadystatechange = function()
	{
		if (xmlhttp.readyState == 4)
		{
			document.getElementById('attorney_profile').innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.setRequestHeader('Accept', 'message/x-sitepilot-rpc');
	xmlhttp.send(null);

}
