havnt done anytype of programing like this....will try this code