So here is the setup: I have two jquery datepickers, inside a jquery tab, inside a jquery modal dialog window:
\\---/\\---/\\---/_______________ /
On your example both datepickers have different id's and name's, however, the problem you describe is exactly what'll happen if you use the same name for both.
Does your actual code use different id and name for both datepickers?