return this.hasAttribute("readonly"); if (val) this.setAttribute("readonly", "readonly"); else this.removeAttribute("readonly"); if (this.focusedDay == -1) return null; return new Date(this.year, this.month - 1, this.currentDay); return this._selectedDate; // if passed date is empty or invalid then we use today date. if (!val || String(val) == this.invalidDate) val = new Date(); this._selectedDate = val; if (!this.isSelectedDate()) this.setDate(this.selectedYear, this.selectedMonth, this.selectedDay); else this.refresh(this.selectedDay, true); return new Date(this.year, this.month - 1, 1).getDay(); var event = this.ownerDocument.createEvent("Events"); event.initEvent("change", true, false); this.dispatchEvent(event); null String(new Date(undefined)) if (this.currentDayIndex != -1) this._dayElements[this.currentDayIndex].focus(); this.refreshInternal(aCurrentDay, aDaysRefreshOnly); this.daysCount) return -1; return day; ]]> if (this._currentDayIndex == aIndex) return; var dayElm = null; if (this._currentDayIndex != -1) { dayElm = this._dayElements[this._currentDayIndex]; dayElm.setAttribute("tabindex", "-1"); } dayElm = this._dayElements[aIndex]; dayElm.setAttribute("tabindex", "0"); this._currentDayIndex = aIndex; new Array() -1 -1 false = 0) { this.currentDayIndex--; this.focus(); } ]]> = 0) { this.currentDayIndex -= 7; this.focus(); } ]]>