W3validator errors

I have a problem with using the w3validator.

The "test website" I created is
http://www.orthohelp.com/TestSrchFrm.html

The validator results are at
https://validator.w3.org/check?uri=http%3A%2F%2Fwww.orthohelp.com%2FTestSrchFrm.html

Question 1:
What I find confusing are the errors from "Line 15" down. The validator 
essentially finds error in the javascript code which should not be errors.

How can I prevent the w3validator from even looking at the javascript 
code? Or should I do something else?

Question 2:
Most of the code was originally written as html. Why is the validator 
checking it as xhtml?

Thank you

Received on Monday, 11 January 2016 21:34:08 UTC