if (typeof(tagVars)=="undefined")
	tagVars = "";
	
if (typeof(lpUASorderTotal)!="undefined" && lpUASorderTotal!=""){
	tagVars = tagVars + '&PAGEVAR!OrderTotal=' + escape(lpUASorderTotal);
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_OrderTotal=' + escape(lpUASorderTotal);
	tagVars = tagVars + '&SESSIONVAR!Conversion=1';
}


if (typeof(lpUASerrorCounter)!="undefined" && lpUASerrorCounter!="")
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_ErrorCounter=' + escape(lpUASerrorCounter);
	
if (typeof(lpUAScartTotal)!="undefined" && lpUAScartTotal!="")
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_CartTotal=' + escape(lpUAScartTotal);
	
if (typeof(lpUASorderNumber)!="undefined" && lpUASorderNumber!="")
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_OrderNumber=' + escape(lpUASorderNumber);
	
if (typeof(lpUASconversionStage)!="undefined" && lpUASconversionStage!="")	
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_ConversionStage=' + escape(lpUASconversionStage);

if (typeof(lpUASsection)!="undefined" && lpUASsection!="")	
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_Section=' + escape(lpUASsection);
	
if (typeof(lpUASconversionDetails)!="undefined" && lpUASconversionDetails!="")	
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_ConversionDetails=' + escape(lpUASconversionDetails);
	
if (typeof(lpUASorderDetails)!="undefined" && lpUASorderDetails!="")	
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_OrderDetails=' + escape(lpUASorderDetails);

if (typeof(lpUASvisitorID)!="undefined" && lpUASvisitorID!="")	
	tagVars = tagVars + '&VISITORVAR!' + lpUASunit + '_VisitorID=' + escape(lpUASvisitorID);

if (typeof(lpUASppi)!="undefined" && lpUASppi!="")	
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_Ppi_Total=' + escape(lpUASppi);

if (typeof(lpUAScpp)!="undefined" && lpUAScpp!="")	
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_Cpp_Total=' + escape(lpUAScpp);
	
if (typeof(lpUASappStatus)!="undefined" && lpUASappStatus!="")	
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_AppStatus=' + escape(lpUASappStatus);
	
if (typeof(lpUAStrackingCode)!="undefined" && lpUAStrackingCode!="")	
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_TrackingCode=' + escape(lpUAStrackingCode);
	
if (typeof(lpUASoriginCode)!="undefined" && lpUASoriginCode!="")	
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_OriginCode=' + escape(lpUASoriginCode);
	
if (typeof(lpUASproductCode)!="undefined" && lpUASproductCode!="")	
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_ProductCode=' + escape(lpUASproductCode);
	
var INITIAL_MAX_SIZE = 300;
var MAX_TAGVARSURL_SIZE = 1600;
var INITIAL_STRING = document.location.toString() + document.title;
var STRING_MAX_SIZE = INITIAL_STRING.length + INITIAL_MAX_SIZE;

if ((typeof(tagVars) == "undefined") || (tagVars == null))
	tagVars = "";
while ((tagVars.length + STRING_MAX_SIZE > MAX_TAGVARSURL_SIZE) && (tagVars.length > 0)) {
	var idx = tagVars.lastIndexOf("&");
	if (idx > 0)
		tagVars = tagVars.substring(0, idx);
	else
		tagVars = "";
}