This line:
if(!isset($_POST['Submit'])){
doesn't have a matching } brace.
EDIT: Actually, you're missing a few of these. The first three if() statements you have after the HTML header stuff all have the same problem as I mentioned above.
EDIT2: The rest of the code (all of it, actually) is just a mess, so I won't be doing much debugging beyond that. Sorry. If you tidy up the page (indentation, separate the HTML from the PHP, etc.) it might be easier for people to debug (and for you to read & spot errors).