<script type="text/javascript">
function timeshow()
{
WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd'})
}
    function hidediv(selectvalue) {
        if (selectvalue == "ZGDate" || selectvalue == "ZTDate") {
         
         //document.getElementById("<%=TextBox1.ClientID %>").attachEvent("onclick", "function(){WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd'})}");
         document.getElementById("<%=TextBox1.ClientID %>").onclick = timeshow;
        }
        else {
           // document.getElementById("<%=TextBox1.ClientID %>").onclick = null;
            var txt = document.getElementById("<%=TextBox1.ClientID %>");            
            txt.detachEvent("onclick", timeshow);
        }
       
    }
</script>