Form Validation Issue

Form Validation Issue

Hi,

I am posting here because I am relatively new to jQuery and I am attempting to use a form validation plugin, or find something that would give me a custom form validation......

What I have is a form I need to validate client-side where the user must either fill in both of the first two text fields or both of the second two text fields, and which will display an error message if they have not entered text in both fields of the first two or the second two.

Right now, I am using http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform, and it works to an extent.....but I cannot seem to figure out how to get it to only validate if the first two are both filled in or the second two. I have a feeling it may be a simple fix, but just not sure how exactly to do it.....any help would be greatly appreciated!

Thank you!