HELP! Coding for email on submission- Not working

Anyone out there able to help me debug the code for receiving an email upon submitting information on a form. I need to get notification and I want the submitter to also get a notification. The back-end java script does not seem to be working. Anyone have any input on this issue? Thanks.