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.