Whoops - it was the DD.MM.YY thing. Change this part:

datAry = otplata.split('.');
yr = datAry[2] + 2000; // full year
mn = datAry[1] - 1; // month in 0-11 format

or better yet, for the year part:

yr = datAry[2];
if (yr < 100) yr += 2000;

this will allow people to say both:

01.01.04

and

01.01.2004