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(lpUASappType)!="undefined")
	tagVars = tagVars + '&PAGEVAR!AppType=' + escape(lpUASappType);

if (typeof(lpUASappStatus)!="undefined")
	tagVars = tagVars + '&PAGEVAR!AppStatus=' + escape(lpUASappStatus);

if (typeof(lpUASaCAPS)!="undefined")
	tagVars = tagVars + '&PAGEVAR!ACAPS=' + escape(lpUASaCAPS);

if (typeof(lpUASsource)!="undefined")
	tagVars = tagVars + '&PAGEVAR!Source=' + escape(lpUASsource);

if (typeof(lpUASconversionStage)!="undefined")
	tagVars = tagVars + '&SESSIONVAR!ConversionStage=' + escape(lpUASconversionStage);

if (typeof(lpUASerrorCounter)!="undefined")
	tagVars = tagVars + '&SESSIONVAR!ErrorCounter=' + escape(lpUASerrorCounter);


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 = "";
}