Hello again everyone i am working on this
I've added an example here of how to do it:
http://jsfiddle.net/tomgrohl/JMkAP/
I added an onsubmit handler to the form:
And added this at the top of the page, a simple validation function: