function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
function ajaxAgentPhone(AgentID)
{
	var xmlHttp;
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var theResponse;
			theResponse = xmlHttp.responseText;
			var theID;
			theID = "agent_phone_"+AgentID;
			document.getElementById(theID).innerHTML=theResponse;
		}
	}
	var url;
	url = "/javascript/ajax/agent_phone.php?agent_ID="+AgentID;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function ajaxAgentFax(AgentID)
{
	var xmlHttp;
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var theResponse;
			theResponse = xmlHttp.responseText;
			var theID;
			theID = "agent_fax_"+AgentID;
			document.getElementById(theID).innerHTML=theResponse;
		}
	}
	var url;
	url = "/javascript/ajax/agent_fax.php?agent_ID="+AgentID;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function ajaxAgentAddress(AgentID)
{
	var xmlHttp;
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var theResponse;
			theResponse = xmlHttp.responseText;
			var theID;
			theID = "agent_address_"+AgentID;
			document.getElementById(theID).innerHTML=theResponse;
		}
	}
	var url;
	url = "/javascript/ajax/agent_address.php?agent_ID="+AgentID;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function ajaxFirmPhone(FirmID)
{
	var xmlHttp;
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var theResponse;
			theResponse = xmlHttp.responseText;
			var theID;
			theID = "firm_phone_"+FirmID;
			document.getElementById(theID).innerHTML=theResponse;
		}
	}
	var url;
	url = "/javascript/ajax/firm_phone.php?firm_ID="+FirmID;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function ajaxFirmFax(FirmID)
{
	var xmlHttp;
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var theResponse;
			theResponse = xmlHttp.responseText;
			var theID;
			theID = "firm_fax_"+FirmID;
			document.getElementById(theID).innerHTML=theResponse;
		}
	}
	var url;
	url = "/javascript/ajax/firm_fax.php?firm_ID="+FirmID;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function ajaxFirmAddress(FirmID)
{
	var xmlHttp;
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var theResponse;
			theResponse = xmlHttp.responseText;
			var theID;
			theID = "firm_address_"+FirmID;
			document.getElementById(theID).innerHTML=theResponse;
		}
	}
	var url;
	url = "/javascript/ajax/firm_address.php?firm_ID="+FirmID;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
