Here is a captcha validation, using Javascript.

Generates Random Sequence.
Validate at client side.

Test Captcha Page