Datapicker just flashes out

Datapicker just flashes out

I am trying to show a second datepicker after selected a date on the first one, but the second one just flashes out.

You can see my code here: http://jsfiddle.net/weksley/FuC8s/4/

How can I fix it?
Thanks.