Don't look at this code unless you feel like being confused!! It is halfway between C and C++ and I don't really understand C++ yet.. Barr3y