%if session("CHEFE")="FALSE" then response.Redirect("main.asp")%> <% function diasMes(strMonth,strYear) dim strDays Select Case cint(strMonth) Case 1,3,5,7,8,10,12: strDays = 31 Case 4,6,9,11: strDays = 30 Case 2: if ((cint(strYear) mod 4 = 0 and _ cint(strYear) mod 100 <> 0) _ or ( cint(strYear) mod 400 = 0) ) then strDays = 29 else strDays = 28 end if End Select diasMes = strDays end function if request.Form("worker")="" then VacationInformationWorker=session("USER") else VacationInformationWorker=request.form("worker") if request.form("date")="" then vacationYear=year(date) else vacationYear=request.form("date") function vacationInformationWorkerList() data = CDate("1/1/"&vacationYear)'dd/mm/yyyy for mes=1 to 12 response.Write "