You can put the scripts into their own files and include them rather than typing the scripts inline; then the page will probably validate.
You can put the scripts into their own files and include them rather than typing the scripts inline; then the page will probably validate.