if (typeof(tagVars)=="undefined")
	tagVars = "";

if (typeof(lpUASorderTotal)!="undefined")
	tagVars = tagVars + '&PAGEVAR!OrderTotal=' + escape(lpUASorderTotal);

if (typeof(lpUASorderTotal)!="undefined")
	tagVars = tagVars + '&PAGEVAR!' +lpUASunit+ 'OrderTotal=' + escape(lpUASorderTotal);

if (typeof(lpUASconversionStage)!="undefined")
	tagVars = tagVars + '&PAGEVAR!ConversionStage=' + escape(lpUASconversionStage);

if (typeof(lpUASerrorCounter)!="undefined")
	tagVars = tagVars + '&PAGEVAR!ErrorCounter=' + escape(lpUASerrorCounter);

if (typeof(lpUASlpPageTitle)!="undefined")
	tagVars = tagVars + '&PAGEVAR!lpPageTitle=' + escape(lpUASlpPageTitle);

if (typeof(lpUASsection)!="undefined")
	tagVars = tagVars + '&PAGEVAR!Section=' + escape(lpUASsection);

if (typeof(lpUASlpZipCode)!="undefined")
	tagVars = tagVars + '&PAGEVAR!lpZipCode=' + escape(lpUASlpZipCode);

if (typeof(lpUASlpPromoCode)!="undefined")
	tagVars = tagVars + '&PAGEVAR!lpPromoCode=' + escape(lpUASlpPromoCode);

if (typeof(lpUASlpTdspCode)!="undefined")
	tagVars = tagVars + '&PAGEVAR!lpTdspCode=' + escape(lpUASlpTdspCode);

if (typeof(lpUASlpOfferCode)!="undefined")
	tagVars = tagVars + '&PAGEVAR!lpOfferCode=' + escape(lpUASlpOfferCode);

if (typeof(lpUASlpConfirmationCode)!="undefined")
	tagVars = tagVars + '&PAGEVAR!lpConfirmationCode=' + escape(lpUASlpConfirmationCode);


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 = "";
}
