var today=new Date(); var year=today.getYear(); if (navigator.appName=="Netscape") { year=Math.round(1*today.getYear()+1900) } var month=today.getMonth()+1; if (month<10) { month='0'+month; } var day=today.getDate(); if (day<10) { day='0'+day; } var YYndx_f,MMndx_f,DDndx_f,YYndx_x,MMndx_x,DDndx_x; function checkYear() { YYndx_f=document.theForm.EffYear.selectedIndex; if (1*document.theForm.EffYear.options[YYndx_f].value28) {alert("February has no than 28 days in years listed.")} if ((1*m==4||1*m==6||1*m==9||1*m==11)&&1*d>30) {alert("The month you selected has no more than 30 days.")} } function checkDay1() { DDndx_f=document.theForm.Rcbo_an_effective_day.selectedIndex; MMndx_f=document.theForm.Rcbo_an_effective_month.selectedIndex; YYndx_f=document.theForm.EffYear.selectedIndex; var d=document.theForm.Rcbo_an_effective_day.options[DDndx_f].value var m=document.theForm.Rcbo_an_effective_month.options[MMndx_f].value var yr=document.theForm.EffYear.options[YYndx_f].value if (1*d<1*day&&1*yr<=1*year&&1*m<=1*month) {alert("Please check selections.....\nEffective Date cannot be earlier than today's Date.")} if (1*m==2&&1*d>28) {alert("February has no than 28 days in years listed.");document.theForm.Rcbo_an_effective_day.focus()} if ((1*m==4||1*m==6||1*m==9||1*m==11)&&1*d>30) {alert("The month you selected has no more than 30 days.");document.theForm.Rcbo_an_effective_day.focus()} }