I would like to validate a "Refer/Recommend to a friend form" using javascript inline validation.
Form looks like this:
Sender name and Sender email:
Friend name and email id's:
1)name: email:
2)name: email:
3)name: email:
I decided that I cannot keep all the email id's as required in the "Friend name and email id's" so I want to check if anyone of the email fields under this column is filled. I can validate the senders email id but not sure how to proceed for Friend's email id's. Can anyone please help me out with this? I want to use inline validation (using css) so that I can avoid the old alert method.

I have a script that can validate(inline) the mail but not sure how to submit the form by checking if one of the 3 is filled rather than checking all the fields one after each.

Please let me know if I need to be more clear in explaining this.