I think I understand that...wasn't what I was hoping for but it's of course a doable option. I was hoping for something that I could put into the function itself to find out (so all the call has to do is send the info the function needs, rather than having to add form ID or such which was the alternative I was going to go with if no-one had other ideas) but as I said, it's an option :-)