function ultDia(anio, mes){ tmpFec = new Date(anio, mes, 31); uDia = 31 - tmpFec.getDate(); return (uDia) ? uDia : tmpFec.getDate(); }