'; cal += '
' cal += ''; cal += ''; cal += '' cal += '
' + month_of_year[month] + ' ' + year + '' + '

'; for(index=0; index < DAYS_OF_WEEK; index++) { if ((index == 0) || (index == 6)) { cal += ''; } else { cal += ''; } } cal += ''; if (Calendar.getDay() == 6){ cal += ''; } else if (Calendar.getDay() == 5){ cal += ''; } else if (Calendar.getDay() == 4){ cal += ''; } else if (Calendar.getDay() == 3){ cal += ''; } else if (Calendar.getDay() == 2){ cal += ''; } else if (Calendar.getDay() == 1){ cal += ''; } else { } for(index=0; index < DAYS_OF_MONTH; index++) { if( Calendar.getDate() > index ) { week_day =Calendar.getDay(); if(week_day == 0) { var day1 = Calendar.getDate(); cal += TR_start; } if(week_day != DAYS_OF_WEEK) { var day = Calendar.getDate(); if ((week_day == 0) || (week_day == 6)) { cal += ''; } if (dayz == 2) { cal += ''; } if (dayz == 3) { cal += ''; } if (dayz == 4) { cal += ''; } if (dayz == 5) { cal += ''; } if (dayz == 6) { cal += ''; } } } cal += '
' + '' + day_of_week[index] + '' + '' + '' + day_of_week[index] + '' + '
 
 
 
 
 
 ' + day + TD_end; } else { cal += '' + day + TD_end; } } if(week_day == DAYS_OF_WEEK) cal += TR_end; } Calendar.setDate(Calendar.getDate()+1); if (day + Calendar.getDate() == 32) { var dayz = day - day1 + 1; if (dayz == 1) { cal += '      
'; cal += '



'; cal += '

Calendar Menu

'; cal +=



'; document.write(cal); }