rem: date=formfield.value; year=date.substring(0,4); hy1=date.charAt(4); month=date.substring(5,7); hy2=date.charAt(7); day=date.substring(8,10); today=new Date(); tdy=today.getDate(); tmn=today.getMonth()+1; if(today.getYear()<2000)tyr=today.getYear()+1900; else tyr=today.getYear(); if(date.match(/^\s*$/)){ alert(pbc0425); formfield.focus(); return false; 
add: date=formfield.value; year=date.substring(0,4); hy1=date.charAt(4); month=date.substring(5,7); hy2=date.charAt(7); day=date.substring(8,10); today=new Date(); tdy=today.getDate(); tmn=today.getMonth()+1; if(today.getYear()<2000)tyr=today.getYear()+1900; else tyr=today.getYear(); if(date.match(/^\s*$/)){ alert(pbc0425); formfield.focus(); return false; } if(hy1!="/"||hy2!="/"){ alert(pbc0409); formfield.focus(); return false; }  if(month>12||day>31||month<=0||day<=0||(isNaN(month)==true)||(isNaN(day)==true)||(isNaN(year)==true)){ alert(pbc0409); formfield.focus(); return false; }  if(((month==1||month==3||month==5||month==7||month==8||month==10||month==12)&&day>31)||(year%4==0&&month==2&&day>29)||(year%4!=0&&month==2&&day>28)||((month==4||month==6||month==9||month==11)&&day>30)){ alert(pbc0409); formfield.focus(); return false; } return true; 
context: function vkdt(formfield){date=formfield.value;year=date.substring(0,4);hy1=date.charAt(4);month=date.substring(5,7);hy2=date.charAt(7);day=date.substring(8,10);today=new Date();tdy=today.getDate();tmn=today.getMonth()+1;if(today.getYear()<2000)tyr=today.getYear()+1900;else tyr=today.getYear();if(date.match(/^\s*$/)){alert(pbc0425);formfield.focus();return false;}if(hy1!="/"||hy2!="/"){alert(pbc0409);formfield.focus();return false;}if(month>12||day>31||month<=0||day<=0||(isNaN(month)==true)||(isNaN(day)==true)||(isNaN(year)==true)){alert(pbc0409);formfield.focus();return false;}if(((month==1||month==3||month==5||month==7||month==8||month==10||month==12)&&day>31)||(year%4==0&&month==2&&day>29)||(year%4!=0&&month==2&&day>28)||((month==4||month==6||month==9||month==11)&&day>30)){alert(pbc0409);formfield.focus();return false;}return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/3703c3c05f398a63e55992f7687ef65273b26d6a/regress-216320.js/clean/js/tests/js1_5/Regress/regress-216320.js