HI Raj !!
If this is the case then you need to store current month/year in hidden variables.
and compare that values in ur function.Why i m giving the idea to store it in hidden text fields is that ,if you rely on client side javascript date ,then the user can change the date setting of his own PC.
So ,now you have hidden cmonth and cyear ,now compare these two with the values entered by the client.
Hope this will help you
Cheers :)
vinod
|