Hi Alan,
I think your most reliable option is to add a parameter to the URL so that the browse can take care of it. For example on one button have
'CustomersBrowse?i=1' and the other 'CustomersBrowse?i=2'
Then in the CustomersBrowse, top of GenerateBrowse routine do
p_web.StoreValue('i')
then use p_web.GetSessionValue('i') in the conditional for the Insert & Change buttons.
cheers
Bruce