Your question is not very clear. But I think what you need is this:
alert( countTypesForBulan(obj[koderesult], "4") );
obj.GetReportIdResult is same with obj['GetReportIdResult'].
3
solved How to retrieve object properties when the property name is in a variable?