small datepicker problem

small datepicker problem

I have a datepicker it works like a charm. Bu i have a question.
 
I want to reedirect page when clicking datepicker for example
if user clikcked 2011-04-25 i want to redirect page foo.asp?date=2011-04-25
 
How can i do? I know i can input a hidden text bar with onchange but this is a dirty solution
 
Thanks all