-% $apply = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_credit_bill.cgi?!.
-% $cust_credit->crednum.
-% qq!', 392, 336, 'cust_credit_bill_popup' ), CAPTION, 'Apply credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+% $apply = ' ('. include( '/elements/popup_link.html',
+% 'label' => 'apply',
+% 'action' => "${p}edit/cust_credit_bill.cgi?".
+% $cust_credit->crednum,
+% 'actionlabel' => 'Apply credit',
+% 'width' => 392,
+% #default# 'height' => 336,
+% ).
+% ')';