function ValidDate(s_date)
{
var Arrdate=s_date.split("-")
var vDay
if (s_date!="")
{if (Arrdate.length!=3)
{return false;};
I=0;
while (I {if (isNaN(Arrdate[I]) || Arrdate[I].indexOf(".")!=-1)
{return false;}
I=I+1;
};
if (Arrdate[0].length!=4 || Arrdate[0]3000)
{return false;};
if (Arrdate[1]12)
{return false;}
vDay=30+(Arrdate[1] if (Arrdate[2]vDay)
{return false;}
vDay=28+(Arrdate[0]%4==0?1:0);
if ((Arrdate[1]==2) && (Arrdate[2]>vDay))
{return false;}
}
return true;
}