Why do you think this is a javascript issue?
Your form passes data to a server-side script that actually sends the email. I'm guessing you didn't write the server-side script, so your ISP must have provided instructions for how to create a form to use it.