I have a custom button client script on an inventory detail form. It allows the user to enter a beginning and an ending serial # and adds all the serial #'s to the sublist. I need to know, in the script, if the inventory detail was started from the PO side(Item Receipt) or the SO side(Item Fulfillment). I want to validate the starting and ending serial #'s that the user enters but only if it's a fulfillment, I don't want to validate them if it's a receipt. I can't seem to find a way to know the current context, any ideas?