form Validation Using Javascript

I have created program using javascript to validate the form. the code validate the pattern applied on the textbox and the requird field. Code is as following;

Code

I have create another program which uses Modernizr to detect html 5 feature used in the form. Code is as follow;

Code

Links Preview

Its an ajax project and in this project i have created tool tip using ajax to show the description of the link. I obtain the contents of the page of the link and show it as preview window when mouse move over the link. The project is attached in below link.

Code