Unverbindliche Anfrage:
");
this.gWinCal.document.close();
}
Calendar.prototype.showY = function() {
var vCode = "";
var i;
var vr, vc, vx, vy; // Row, Column, X-coord, Y-coord
var vxf = 285; // X-Factor
var vyf = 200; // Y-Factor
var vxm = 10; // X-margin
var vym; // Y-margin
if (isIE) vym = 75;
else if (isNav) vym = 25;
this.gWinCal.document.open();
this.wwrite("");
this.wwrite("Calendar ");
this.wwrite("");
this.wwrite("");
this.wwrite("");
this.wwrite("");
this.wwrite("Year : " + this.gYear);
this.wwrite("
");
// Show navigation buttons
var prevYYYY = parseInt(this.gYear) - 1;
var nextYYYY = parseInt(this.gYear) + 1;
this.wwrite("");
this.wwrite("[<<<\/A>] ");
this.wwrite("[Print] ");
this.wwrite("[>><\/A>]
");
// Get the complete calendar code for each month..
var j;
for (i=11; i>=0; i--) {
if (isIE)
this.wwrite("");
else if (isNav)
this.wwrite("");
this.gMonth = i;
this.gMonthName = Calendar.get_month(this.gMonth);
vCode = this.getMonthlyCalendarCode();
this.wwrite(this.gMonthName + "/" + this.gYear + "
");
this.wwrite(vCode);
if (isIE)
this.wwrite(" ");
else if (isNav)
this.wwrite("");
}
this.wwrite("
");
this.gWinCal.document.close();
}
Calendar.prototype.wwrite = function(wtext) {
this.gWinCal.document.writeln(wtext);
}
Calendar.prototype.wwriteA = function(wtext) {
this.gWinCal.document.write(wtext);
}
Calendar.prototype.cal_header = function() {
var vCode = "";
vCode = vCode + "";
vCode = vCode + "So ";
vCode = vCode + "Mo ";
vCode = vCode + "Di ";
vCode = vCode + "Mi ";
vCode = vCode + "Do ";
vCode = vCode + "Fr ";
vCode = vCode + "Sa ";
vCode = vCode + " ";
return vCode;
}
Calendar.prototype.cal_data = function() {
var vDate = new Date();
vDate.setDate(1);
vDate.setMonth(this.gMonth);
vDate.setFullYear(this.gYear);
var vFirstDay=vDate.getDay();
var vDay=1;
var vLastDay=Calendar.get_daysofmonth(this.gMonth, this.gYear);
var vOnLastDay=0;
var vCode = "";
/*
Get day for the 1st of the requested month/year..
Place as many blank cells before the 1st day of the month as necessary.
*/
vCode = vCode + "";
for (i=0; i ";
}
// Write rest of the 1st week
for (j=vFirstDay; j<7; j++) {
vCode = vCode + "" +
"" +
this.format_day(vDay) +
"" +
" ";
vDay=vDay + 1;
}
vCode = vCode + " ";
// Write the rest of the weeks
for (k=2; k<7; k++) {
vCode = vCode + "";
for (j=0; j<7; j++) {
vCode = vCode + "" +
"" +
this.format_day(vDay) +
"" +
" ";
vDay=vDay + 1;
if (vDay > vLastDay) {
vOnLastDay = 1;
break;
}
}
if (j == 6)
vCode = vCode + " ";
if (vOnLastDay == 1)
break;
}
// Fill up the rest of last week with proper blanks, so that we get proper square blocks
for (m=1; m<(7-j); m++) {
if (this.gYearly)
vCode = vCode + " ";
else
vCode = vCode + "" + m + " ";
}
return vCode;
}
Calendar.prototype.format_day = function(vday) {
var vNowDay = gNow.getDate();
var vNowMonth = gNow.getMonth();
var vNowYear = gNow.getFullYear();
if (vday == vNowDay && this.gMonth == vNowMonth && this.gYear == vNowYear)
return ("" + vday + "");
else
return (vday);
}
Calendar.prototype.write_weekend_string = function(vday) {
var i;
// Return special formatting for the weekend day.
for (i=0; i
"); // Show navigation buttons var prevYYYY = parseInt(this.gYear) - 1; var nextYYYY = parseInt(this.gYear) + 1; this.wwrite("
| "); this.wwrite("[<<<\/A>] | "); this.wwrite("[Print] | "); this.wwrite("[>><\/A>] |
"); // Get the complete calendar code for each month.. var j; for (i=11; i>=0; i--) { if (isIE) this.wwrite("
");
else if (isNav)
this.wwrite("");
this.gMonth = i;
this.gMonthName = Calendar.get_month(this.gMonth);
vCode = this.getMonthlyCalendarCode();
this.wwrite(this.gMonthName + "/" + this.gYear + "
"); this.wwrite(vCode); if (isIE) this.wwrite("
");
else if (isNav)
this.wwrite("");
}
this.wwrite(""); this.wwrite(vCode); if (isIE) this.wwrite("
"); this.gWinCal.document.close(); } Calendar.prototype.wwrite = function(wtext) { this.gWinCal.document.writeln(wtext); } Calendar.prototype.wwriteA = function(wtext) { this.gWinCal.document.write(wtext); } Calendar.prototype.cal_header = function() { var vCode = ""; vCode = vCode + "

