/* =============================================================== */
function checkDate(fDay,fMonth,fYear)
/* =============================================================== */
 {
   day=fDay.options[fDay.options.selectedIndex].value;
   month=fMonth.options[fMonth.options.selectedIndex].value;
   year=fYear.options[fYear.options.selectedIndex].value;
   if ((month==4)||
           (month==6)||
           (month==9)||
           (month==11))
        {
                if (day==31)
                {
						
							
							alert ("Atencion: día inválido!");
						
                        
                        fDay.selectedIndex=29;
                }
        }
   
   if (
       ((month==2)&&(day > 29))||
           ((month==2)&&(day == 29)&& !biciesto(fYear))
          )
        {
						
							
							alert ("Atencion: día inválido!");
						
                        fDay.selectedIndex=27;
        }


        return 1;
 }
/* =============================================================== */
function biciesto(fYear)
/* =============================================================== */
{
   year=fYear.options[fYear.options.selectedIndex].value;
   if (
       ((year % 4)==0) && ((year % 100)!=0)||
           ((year % 400)==0)
          )
        return 1;
   else
   return 0;
}
