Strangely, I am not seeing calShow function being called any where else in the code. So I am not sure if it is adding the datepicker. Since I am a new developer, it is a bit challenging for me to find out what this function is doing. Before the original developer left he said that he had fixed this issue by adding a new javascript function 'calShow2' and added a couple of lines of code to the 'FillReportCriteriaValues' method to call it there. He wasn't able to implement it. So now I am thinking that I need to do exactly the same. I need a javascript function which will use the 'showCal' function logic to determine if the text box field value is a date, if yes, then display the calendar icon ID img#dp0, img#dp1, img#dpl2, img#dp3 and img#dp4 in front of text boxes (#txtValue0, #txtValue1,#txtValue2,#txtValue3,#txtValue4). I am not sure how those are linked to the datepicker! I can check if needed.
The line 741 in showCal function that clears the date value may be required as users might change the field selection and enter new values.
Isn't adding a new javascript function as described above the easiest solution? I may be wrong.
Thanks