I'm using a simple datepicker script found here: simple jQuery date-picker plugin

The actual code is here: http://teddevito.com/demos/cal.js

When the input text element receives focus (through onclick?) the calendar HTML is displayed. I'd like to call disable that and only display the HTML when the user clicks on a calendar icon next to the text box. Additionally, I'd like to close the calendar HTML when the text box loses focus, which does not currently happen.

Javascript is not my strong point and I'm a little lost looking at this code. Any help or even a pointer in the right direction would be most appreciated.