You should try the following:
- Add an id for every input and form
- Write a global function that checks the value (for example check_email(inputid) or check_name(inputid) )
- Use the event onsubmit() in each form tag. In that event you should call a fuction: onsubmit="return checkform(this.id)"
- The function checkform(formid) should return atrue if all fields have been entered correctly or false if not
~G