﻿//Start of DoubleClick Spotlight Tag: Please do not remove
//Account Information - Step 2
if(document.forms["frmMain"].elements["viewName"].value == "MyAccountView")
{
var axel = Math.random();
var a = axel * 10000000000000;
document.write('<img src="https://ad.doubleclick.net/activity;src=1834221;type=media544;cat=media136;ord=1;num='+ a + '?" width="1" height="1" border="0" alt="">');
}

//Payment Method - Step 3
if(document.forms["frmMain"].elements["viewName"].value == "PaymentMethodSelect")
{
var axel = Math.random();
var a = axel * 10000000000000;
document.write('<img src="https://ad.doubleclick.net/activity;src=1834221;type=media544;cat=media640;ord=1;num='+ a + '?" width="1" height="1" border="0" alt="">');
}

//Order Contents - Step 4
if(document.forms["frmMain"].elements["viewName"].value == "ShoppingCartOrder")
{
var axel = Math.random();
var a = axel * 10000000000000;
document.write('<img src="https://ad.doubleclick.net/activity;src=1834221;type=media544;cat=media863;ord=1;num='+ a + '?" width="1" height="1" border="0" alt="">');
}

//Order Details - Step 5
if(document.forms["frmMain"].elements["viewName"].value == "PurchaseReceiptView")
{
var cost = getPriceDigit(XSLOrderAmount); //round total price to 2 decimal places *100
var InvoiceNum = XSLInvoiceNumber; //orderID
var ClientId= XSLClientOrderId;//client orderID
var ord = InvoiceNum+"_"+ClientId;
var queryArgs = getArgs();
var iid = queryArgs['iid'];
var aid = queryArgs['aid'];

//document.write('<img src="https://ad.doubleclick.net/activity;src=1834221;type=media343;cat=media510;qty=1;cost='+cost+';iid='+iid+';aid='+aid+';ord='+ord+'?" width="1" height="1" border="0" alt="">');
document.write('<IFRAME SRC="https://fls.doubleclick.net/activityi;src=1834221;type=media343;cat=media510;u1='+iid+';u2='+aid+';qty=1;cost='+cost+';ord='+ord+'?" WIDTH=1 HEIGHT=1 FRAMEBORDER=0></IFRAME>');
}
//End of DoubleClick Spotlight Tag: Please do not remove