I have a function to validate a form using Javascript. The function gets called onClick and returns a value of true or false:

<a href="#" class="button color"...