"); this.wwrite("
"); // calculate the required months and years used in the forwarsd and backward links var prevMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, -1); var prevMM = prevMMYYYY[0]; var prevYYYY = prevMMYYYY[1]; var nextMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, 1); var nextMM = nextMMYYYY[0]; var nextYYYY = nextMMYYYY[1]; this.wwrite("| "); // show backward link // if this month and this year - then dont show back link - no negative bookings if (this.gMonth == gNow.getMonth() && this.gYear == gNow.getFullYear()) { this.wwrite(" "); } else { this.wwrite("<<\/A>"); } // show month and year on top of calendar this.wwrite(" | "); this.wwriteA(""); this.wwriteA(this.gMonthName + " " + this.gYear ); this.wwriteA(" | "); // show forward link // if choosing arrival dates // - do not show link for more than one year after today // if choosing departure dates // - do not show link for more than 30 days after the last arrival date if ((this.gMonth == gNow.getMonth() && this.gYear == gNow.getFullYear()+1 && this.gReturnItem == 'frm_Search.ad') || (this.gMonth == gLastDate.getMonth() && this.gYear == gLastDate.getFullYear() && this.gReturnItem == 'frm_Search.dd')) { this.wwrite(" "); } else { this.wwrite("><\/A>"); } this.wwrite(" |