% my $n = 0;
% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
var configCell = window.top.document.getElementById('<% $agentnum. $i->key. $n %>');
% my $n = 0;
% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
var configCell = window.top.document.getElementById('<% $agentnum. $i->key. $n %>');