 <input type=text id=text2><input type=button value="Show Calendar" onclick="showCalendar(this,document.all.text2)"> 