if (typeof(tagVars)=="undefined")
	tagVars = "";
	
if (typeof(lpUASsubmit_OrderTotal)!="undefined" && lpUASsubmit_OrderTotal!=""){
	tagVars = tagVars + '&PAGEVAR!Submit_OrderTotal=' + escape(lpUASsubmit_OrderTotal);
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_Submit_OrderTotal=' + escape(lpUASsubmit_OrderTotal);
	tagVars = tagVars + '&SESSIONVAR!Conversion=1';
}

if (typeof(lpUASapprove_OrderTotal)!="undefined" && lpUASapprove_OrderTotal!=""){
	tagVars = tagVars + '&PAGEVAR!Approve_OrderTotal=' + escape(lpUASapprove_OrderTotal);
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_Approve_OrderTotal=' + escape(lpUASapprove_OrderTotal);
	tagVars = tagVars + '&SESSIONVAR!Conversion=1';
}

if (typeof(lpUASerrorCounter)!="undefined" && lpUASerrorCounter!=""){
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_ErrorCounter=' + escape(lpUASerrorCounter);
}

if (typeof(lpUASerrorName)!="undefined" && lpUASerrorName!=""){
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_ErrorName=' + escape(lpUASerrorName);
}

if (typeof(lpUASvisitorID)!="undefined" && lpUASvisitorID!=""){
	tagVars = tagVars + '&VISITORVAR!VisitorID=' + escape(lpUASvisitorID);
}

if (typeof(lpUASsection)!="undefined" && lpUASsection!=""){
	tagVars = tagVars + '&PAGEVAR!Section=' + escape(lpUASsection);
}

if (typeof(lpUASproductType)!="undefined" && lpUASproductType!=""){
	tagVars = tagVars + '&PAGEVAR!' + lpUASunit + '_ProductType=' + escape(lpUASproductType);
}

if (typeof(lpUASexternalID)!="undefined" && lpUASexternalID!=""){
	tagVars = tagVars + '&SESSIONVAR!ExternalID=' + escape(lpUASexternalID);
}

if (typeof(lpUASpffsrcID)!="undefined" && lpUASpffsrcID!=""){
	tagVars = tagVars + '&SESSIONVAR!PffsrcID=' + escape(lpUASpffsrcID);
}

if (typeof(lpUASoasUser)!="undefined" && lpUASoasUser!=""){
	tagVars = tagVars + '&SESSIONVAR!OasUser=' + escape(lpUASoasUser);
}

if (typeof(lpUAStestCell)!="undefined" && lpUAStestCell!=""){
	tagVars = tagVars + '&SESSIONVAR!TestCell=' + escape(lpUAStestCell);
}

if (typeof(lpUASbehavior)!="undefined" && lpUASbehavior!=""){
	tagVars = tagVars + '&SESSIONVAR!Behavior=' + escape(lpUASbehavior);
}

if (typeof(lpUASinsertRule)!="undefined" && lpUASinsertRule!=""){
	tagVars = tagVars + '&SESSIONVAR!InsertRule=' + escape(lpUASinsertRule);
}

if (typeof(lpUASapplicationID)!="undefined" && lpUASapplicationID!=""){
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_ApplicationID=' + escape(lpUASapplicationID);
}

if (typeof(lpUASapr)!="undefined" && lpUASapr!=""){
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_APR=' + escape(lpUASapr);
}

if (typeof(lpUASloanAmount)!="undefined" && lpUASloanAmount!=""){
	tagVars = tagVars + '&SESSIONVAR!' + lpUASunit + '_LoanAmount=' + escape(lpUASloanAmount);
}

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 = "";
}
