I have a custom record type that has a transaction as its parent. I need to do some stuff to the transaction when the custom record is edited. How can I determine the TYPE of the transaction (I can get the ID using nlapiGetFieldValue()), but I then need to nlapiLoadRecord the transaction itself and it could be a sales order, an estimate, or an opportunity so I need to know what type of record to load. I am using 1.0.