thank you very much! i should be able to implement this now...
btw, i now know one of the uses of function pointers...