jQuery dialog with validation on dates

jQuery dialog with validation on dates

Hi,
 
i have created a jQuery dialog with a few textboxes in which the user will enter dates. I need to use jQuery datepickers and also validate the dates with different criterias. How do i do this?
 
Thanks!
 
/Kris