well ... no offence, but you've made a mess out of your usage of
{'s and }'s.
starting from line 108.
not to mention the fact that you're using variables you didn't declare or initialize.
you may want to spend some minutes cleaning your code.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
You don't close the else block of case 5.
Always use braces when using if and you won't forget this sort of thing.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494