greeny_1984 14 Posting Whiz

hi everyone,
iam having a textbox in my application containg a calender iamge as shown below,which when clicked displays a calender,on clicking on the calender,the date is displayed in the textbox.

<asp:TextBox ID="txtfromdate"  runat="server" Width="100px"></asp:TextBox>   <A id="A5" href="javascript:show_calendar('aspnetForm.ctl00_ContentPlaceHolder1_txtfromdate','','','DD/MM/YYYY');" runat="server">
                 <img id="Img5" border="0" height="20" src="../images/cal.gif" runat="server" alt="Pick a date" width="24"/></A>

I want to validate this textbox on blur event but iam getting alert even when there is date text present in the textbox.The calender is working on a internal javascript.
Can any one suggest how to not get alert in "on blur" event.It is working for validation on submit button click.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.