Just pass your choice 1 or 2 to the function and take decisions based on it using plain old if.

I hope it will solve your problem. If not, then please explain things more clearly so that people here can try to help you.

[edit] Didn't really read shabbir's answer. Actually he said the same thing.[/edit]

Last edited by Aztec; 19May2006 at 05:46..