function getWeekNr() {

var today = new Date(); Year = takeYear(today); Month = today.getMonth(); Day = today.getDate(); now = Date.UTC(Year,Month,Day+1,0,0,0); var Firstday = new Date(); Firstday.setYear(Year); Firstday.setMonth(0); Firstday.setDate(1); then = Date.UTC(Year,0,1,0,0,0); var Compensation = Firstday.getDay(); if (Compensation > 3) Compensation -= 4; else Compensation += 3; NumberOfWeek = Math.round((((now-then)/86400000)+Compensation)/7); return NumberOfWeek; }

function takeYear(theDate) {

x = theDate.getYear(); var y = x % 100; y += (y < 38) ? 2000 : 1900; return y; }

Spanish Word of the Day


*----------------------

Spanish Word of the Day


*----------------------

Custom Search