Thanks everyone for the response.
@michoel @alien4u
But I want to use only User Event here. (SS1.0)
So I tried the following code: I redirect the URL on click of VOID button.
var parameter = []; // empty array
// add elements with string keys
parameter['gbtvoid'] = 'T';
// Add custom button 'Void' on Customer Refund
form.addButton('custpage_voidcr', 'Void CR',nlapiSetRedirectURL('RECORD', nlapiGetRecordType(), nlapiGetRecordId(),false,parameter));
This is giving me error. The URL is generating correctly with the following error:
system.sandbox.netsuite.com redirected you too many times.