Hello,

I have this function:

function computeTotal(ticket_id,amt)
{
var form=document.contactForm;
var totalAmount = 0;

// loop over the ticket_id and amount. if there's a drop-down for additional tickets then multiply the amount times the additional tickets for that ticket level (ticket_id)
for (var x = 0; x < arguments.length; x++) {
if (form.ticketAddtl_101 != undefined)
{
alert(form.ticketAddtl_101.selectedIndex+1)
totalAmount = amt * (form.ticketAddtl_101.selectedIndex+1);
}
else
{
totalAmount = amt;
}
};

But for the life of me I can't figure out how to reference the ticket_id argument in the "if (form.ticketAddtl_101 != undefined)" call so it should read something like "if (form.ticketAddtl_+'ticket_id'+ != undefined)"

TIA