Please could you fix your code tags, do make this more readable?
It looks to me like you've got your use of semicolons and braces horribly messed up in your if statements. The best way to fix this is to go back to your textbook and re-read the sections on if statements, to learn the correct syntax.
Edit You would also help yourself enormously if you adopted a sensible formatting style with regards to indentation, bracing style, putting one statement on a line, etc. This will help you see more easily what your code is doing and where you might be going wrong.
First of all i suggest you to study how to properly indent your code, put braces and statements under if's line by line to clarify blocks of statement etc...
And also use code tags next time you post -> insert your code between the
so that your code will be neater.
The main problems for me are:
1. you are putting some braces which are not really needed
2. your if syntax's are wrong
3. your conditional statements inside ifs are wrong, if we want to compare 2 values, we use == operator, not =