Form Validation

Hi guys, I’ve a problem, I’ve a form in flash, built with Input Text Fields, my Variables are:

Nombres
Apellidos
Empresa
Telefono
Email
Ciudad
Comentarios

and I want to validate all the fields before somebody submits the button, how I can do this?

thanks!