// written by Tan Ling Wee on 2 Dec 2001 // last updated 23 June 2002 // email : fuushikaden@yahoo.com // Modified by Paul Morel on 6 May 2003 -- Condensed and rearranged code // popUpCalendar(this, form.data_final ,'dd/mm/yyyy') //You can edit these variables var fixedX = -1 // x position (-1 if to appear below control) var fixedY = -1 // y position (-1 if to appear below control) var startAt = 1 // 0 - sunday ; 1 - monday var showWeekNumber = 0 // 0 - don't show; 1 - show var showToday = 1 // 0 - don't show; 1 - show var imgDir = "../img/" // directory for images ... e.g. var imgDir="/img/" var weekString = "Wk" var scrollLeftMessage = "Click to scroll to previous month. Hold mouse button to scroll automatically." var scrollRightMessage = "Click to scroll to next month. Hold mouse button to scroll automatically." var selectMonthMessage = "Clique para selecionar o mês." var selectYearMessage = "Clique para selecionar o ano." var selectDateMessage = "Select [date] as date." // do not replace [date], it will be replaced by date. var styleAnchor="text-decoration:none;color:black;" var styleLightBorder="border-style:solid;border-width:1px;border-color:#666666;" var monthName = new Array("January","February","March","April","May","June","July","August","September","October","November","December") var gotoString = "Go to current month" var todayString = "Today is" var NamesDom = new Array ("Sun","Mon","Tue","Wed","Thu","Fri","Sat") var NamesSeg = new Array ("Mon","Tue","Wed","Thu","Fri","Sat","Sun") var imgsrc= new Array("calendario_pulldown_off.gif","calendario_pulldown_on.gif","calendario_esq_off.gif","calendario_esq_on.gif","calendario_dir_off.gif","calendario_dir_on.gif") // calendario_fechar.gif, calendario_esq_off.gif, calendario_dir_off.gif, pixel.gif //Don't Edit these variables var crossobj, crossMonthObj, crossYearObj, monthSelected, yearSelected, dateSelected, omonthSelected, oyearSelected, odateSelected, monthConstructed, yearConstructed, intervalID1, intervalID2, timeoutID1, timeoutID2, ctlToPlaceValue, ctlNow, dateFormat, nStartingYear var bPageLoaded=false var ie=document.all var dom=document.getElementById var ns4=document.layers var today = new Date() var dateNow=today.getDate() var monthNow=today.getMonth() var yearNow=today.getYear() var img = new Array() var bShow = false; var HolidaysCounter = 0 var Holidays = new Array() if (dom){ for (i=0;i