//---------------------------------------------------------------------------
//	This function prepares the full URL for linking to a given research
//	document
//---------------------------------------------------------------------------
function ILink(sCitation, sLEID)
{
	var sFullLink;

	sFullLink = "http://tax.cchgroup.com/network&ja=LK&KT=L&LKQ=";
	sFullLink = sFullLink + sCitation;
	sFullLink = sFullLink + "&";
	sFullLink = sFullLink + sLEID;
		
	return sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on TRN after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToTRN(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=0";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on Essentials after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToEssentials(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=1";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on BFG after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToBFG(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=2";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on HR after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToHR(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=3";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on Health after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToHealth(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=4";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on Solutions after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToSolutions(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=5";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}
	
//---------------------------------------------------------------------------
//	This function switches to the cited document on MTG after calling
//	ILink to get a properly formatted URL
//---------------------------------------------------------------------------
function ILinkToMTG(sCitation)
{
	var sLEID, sFullLink;

	sLEID = "LEID=6";
	sFullLink = ILink(sCitation, sLEID);
		
	document.location = sFullLink;
}

