// Event Calendar


var tb = 'b'; // top or bottom (t or b)
var headbg = '#99cccc'; // table heading background colour
var todaybg = '#99cccc'; // current selected date background colour
var textclr = '#000000'; // text colour
var linkclr = '#ff9999'; // link text colour
var noMessage =  '<br/><br/>No Activities for to day'; // message to display when no entry in array


var dA = new Array(); var x = 0; 
// first 8 characters in ccyymmdd format for single date events
// first 8 characters in 0000mmdd format for every year events
dA[x++] = "00000101 New Year";
dA[x++] = "00000214 Valentine's day";
dA[x++] = "00000709 ";
dA[x++] = "00000919 ";
dA[x++] = "00001206 ";
// dA[x++] = "20060610 New Event Calendar Started today";
dA[x++] = "20100301 <br/><br/><b>Mass Sponsors:  Grades 8 Hope, 7 Charity, 7 Faith   and 3 Faith</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>Recollection Batch 2 BSN RLE Groups 2,3, 7 and 8</b><br/>Overnight, CCPRC Concepcion Grande, NC<br/><br/><b>BED Upper Level Tanghalan ng Kampeon (c/o Filipino area)</b><br/>1:00 to 5:00 PM Auditorium, Main Campus<br/><br/><b>NHS due of Fourth Periodical Exam Questions for  the 5th Year Students (c/o NHS Faculty)</b><br/>NHS Principal’s Office Main Campus<br/><br/><b>HED Final Exams for Graduating Students - Day 1</b><br/>As scheduled";
dA[x++] = "20100302 <br/><br/><b>Mass Sponsors:  Night High School and MAC</b><br/>5:00 PM Main Campus Chapel<br/><br/><b>BED Upper Level Shakespearean Play (c/o English Area)</b><br/>7:30 AM to 5:00 PM Auditorium, Main Campus<br/><br/><b>CES Staff BEC and Meeting</b><br/>8:30 AM CES Office, Main Campus</b><br/><br/><b>Information Campaign to Participate as Poll Watchers for 2010 Elections (c/o VP for SA, Formation and Services)</b><br/>2:00 to 4:00 PM Social Hall, Main Campus<br/><br/><b>HED Final Exams for Graduating Students - Day 2</b><br/>As scheduled";
dA[x++] = "20100303 <br/><br/><b>Mass Sponsors:  Grades 8 Humility, 7 Hope, 7   Humility and Grade 3 Hope</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>Recollection Batch 2 BSN RLE Groups 9, 14, 20 & 23</b><br/>Overnight, CCPRC Concepcion Grande, NC<br/><br/><b>Confession (at San Francisco Church)</b><br/>4:30 PM<br/><br/><b>BED Principal’s Council Meeting and BEC</b><br/>9:00 AM, BED Principal’s Office, Main Campus<br/><br/><b>CES Dialogue of Life in Partner Communities</b><br/>9:00 to 11:00 AM Naga City & Bato, Cam. Sur<br/><br/><b>CASTED Dean’s Council Meeting</b><br/>3:00 to 5:00 PM CASTED Dean’s Office USI Main Campus<br/><br/><b>BED Faculty Vincentian Formation Session on Code of Ethics of the DC SLMES</b><br/>4:00 to 6:00 PM Mini-Theater, Main Campus<br/><br/><b>HED Final Exams for Graduating Students - Day 3</b><br/>As scheduled<br/><br/><b>March 3 to 5, 2010 ECEDP Final Examinations</b><br/>ECEDP Classrooms ";
dA[x++] = "20100304 <br/><br/><b>Mass Sponsors: CSW, CGC & CAC</b><br/>12:30 PM Panganiban Campus Chapel<br/><br/><b>Confession (at Naga Metropolitan Cathedral)</b><br/>5:30 PM<br/><br/><b>Jobs Fair (c/o Admissions, Placement and Scholarship Office)</b><br/>8:00 AM  (Auditorium) 11:00 AM  (Social Hall)<br/><br/><b>Career Talk for Grade 6 (c/o Guidance, Counseling and Testing Center)</b><br/>8:00 AM to 12:00 PM Social Hall, Main Campus<br/><br/><b>CES Functional Literacy Session</b><br/>1:30 PM Tres Reyes, Bato Cam. Sur<br/><br/><b>BED Club Meetings</b><br/>3:00 to 5:00 PM BED Classrooms, Main Campus<br/><br/><b>BED Submission of Grade 10 Club Grades</b><br/>Respective Offices<br/><br/><b>HED Deadline for Graduating Students to clear Deficiencies</b><br/>Respective Offices<br/><br/><b>HED Pre-final Examinations - Day 1</b><br/>As scheduled ";
dA[x++] = "20100305 <br/><br/><b>First Friday Mass Sponsors:  Grades 8 Humility, 7 Hope, 7 Humility and 3 Hope</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>Confession</b><br/>4:30 PM San Francisco Church 5:30 PM Naga Cathedral<br/><br/><b>Social Work Day</b><br/>Whole Day Panganiban Campus<br/><br/><b>Grade 6 National Achievement Test (NAT)</b><br/>7:30 AM to 3:00 PM Grade 6 Classrooms<br/><br/><b>BEC Session – Parents of SLMLC Pupils (c/o CES Office)</b><br/>9:00 AM San Isidro, Naga City<br/><br/><b>CES Monthly Meeting of BLW</b><br/>3 PM  @ Pacol, Naga City<br/><br/><b>BED Community Extension Services (Grade 3 Hope and Humility)</b><br/>3:30 to 5:00 PM Pacol, Naga City<br/><br/><b>College of Nursing Level 4 Parents Meeting</b><br/>4:00 PM SJJ 301, Main Campus<br/><br/><b>BED Tribute to Seniors</b><br/>4:00 PM Paranymphus, Main campus<br/><br/><b>HED Pre-final Examinations -Day 2</b><br/>As scheduled<br/><br/><b>Last Day of Election of Department Organizations’ Officers";
dA[x++] = "20100306 <br/><br/><b>Teacher Education Day (Part 2)</b><br/>8:00 AM to 5:00 PM Panganiban Campus<br/><br/><b>Vermiculture Monitoring (c/o CES Office)</b><br/>8:00 AM Pacol & Sn Isidro, Naga City<br/><br/><b>BEC Session (c/o CES Office)</b><br/>8:00 AM Pacol, Naga City<br/><br/><b>Overnight Recollection of 5th Year Night High School</b><br/>Main Campus<br/><br/><b>March 6 and 7, 2010 College of Nursing Pre-Board Exam (ACN210)</b><br/>Whole Day SJJ 201-202, Main Campus<br/><br/><b>Submission of List of Student Organizations’ Officers</b><br/>Office of the Director for Student Affairs & Formation";
dA[x++] = "20100307 <br/><br/><b>Third Sunday of Lent</b><br/><br/><b>BED Community Extension Services (c/o String & Wind Ensemble)</b><br/>7:30 to 10:30 AM Main Campus</b><br/><br/><br/><b>BEC Session (c/o CES Office)</b><br/>7:30 AM San Isidro, Naga City<br/><br/><b>Accreditation and Equivalency Session (c/o CES Office)</b><br/>8:00 AM San Isidro, Naga City";
dA[x++] = "20100308 <br/><br/><b>Mass Sponsors: Grades 8 Humility, 7 Hope, 7   Humility and 3 Hope</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>Recollection Batch 3 BSN RLE Groups 4, 12, 16 & 18</b><br/>Overnight, CCPRC Concepcion Grande, NC<br/><br/><b>BED Upper Level Advisers’ Meeting</b><br/>3:50 to 5:00 PM Mini-Theater, Main Campus<br/><br/><b>Due Date of Pilgrimage Commitment Form (c/o USI Personnel)</b><br/>RE/CM/VF Office Main Campus<br/><br/><b>March 8 and 9, 2010 College of Nursing Diagnostic Test PRS Review Center for Level 4 Students</b><br/>7:00 AM College of Nursing Rooms Main Campus<br/><br/><b>March 8 to 10, 2010 Grade 10 Final Exams</b><br/>As scheduled<br/><br/><b>March 8 to 10, 2010 Submission of BED Undergrad Club Grades</b><br/>Respective Offices";
dA[x++] = "20100309 <br/><br/><b>Mass Sponsors:  Night High School & MAC</b><br/>5:00 PM Main Campus Chapel<br/><br/><b>Recollection Batch 2 BSN RLE Group 2, and Batch 3 BSN    RLE Groups 17, 26 & 29</b><br/>Overnight, CCPRC Concepcion Grande, NC<br/><br/><b>Academic Council Meeting</b><br/>9:00 AM @Conference Room Main Campus<br/><br/><b>CES Weekly Meeting and BEC BED Club Meetings</b><br/>PM  CES Office, Main Campus 3:30 to 5:00 PM BED Classrooms<br/><br/><b>March 9 to 11, 2010 NHS  Fourth Periodical Exams for  5th Year Students</b><br/>As scheduled";
dA[x++] = "20100310 <br/><br/><b>Mass Sponsors:  Grades 8 Obedience, 7 Obedience   and 3 Humility</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>Recollection Batch 3 BSN RLE groups 21, 22 and 25</b><br/>Overnight, CCPC Concepcion Grande, NC<br/><br/><b>Confession (at San Francisco Church)</b><br/>4:30 PM<br/><br/><b>First Camarines Sur Leadership Forum (c/o CASTED)</b><br/>8:00 AM to 12:00 PM Auditorium, Main Campus<br/><br/><b>Parliamentary Procedure Seminar  for Officers of Student Organizations (c/o CSG Officers)</b><br/>8:00 AM to 5:00 PM Social Hall, Main Campus<br/><br/><b>RE-CM Meeting</b><br/>8:30 AM RE/CM Office, Main Campus<br/><br/><b>USI Annual Awards (c/o Student Affairs and Formation Office)</b><br/>1:00 to 5:00 PM Auditorium, Main Campus<br/><br/><b>HED Faculty Vincentian Formation Session on Code of Ethics of the DC SLMES</b><br/>2:00 to 4:00 PM AVR A, Main Campus<br/><br/><b>BED Faculty Meeting</b><br/>3:30 to 5:00 PM Mini-Theater, Main Campus<br/><br/><b>Night of Literary Masterpieces, Songs and Dances (c/o CASTED)</b><br/>5:30 to 7:30 PM Marian Garden Main Campus<br/><br/><b>HED Recognition Day</b><br/>TBA<br/><br/><b>Deadline for Submission of Final Exam Test Questions by the HED Faculty</b><br/>Respective Offices<br/><br/><b>BED Students’ Signing of Clearance in All Offices</b><br/>Respective Offices<br/><br/><b>Preparation for SLMLC Graduation (c/o CES Office)</b><br/>Whole Day Pacol, Naga City";
dA[x++] = "20100311 <br/><br/><b>Anniversary of the Canonization of St. Louise de Marillac (1934)</b><br/><br/><b>Mass Sponsors:  Teacher Education and Physical Therapy Faculty and Students</b><br/>12:30 PM Panganiban Campus Chapel<br/><br/><b>Grade 8 National Achievement Test (NAT)</b><br/>7:30 AM to 3:00 PM Grade 8 Classrooms<br/><br/><b>BED Graduation Practice Starts</b><br/>8:00 AM to 5:00 PM BED Campus<br/><br/><b>CES Functional Literacy Session</b><br/>2:00 PM Tres Reyes, Bato Cam. Sur<br/><br/><b>BED Students’ Signing of Clearance at the Vice-Principal for Academics Office</b><br/>BED Vice-Principal’s Office<br/><br/><b>Submission of ECEDP Grades and Grade 10 Honors</b><br/>Respective Offices";
dA[x++] = "20100312 <br/><br/><b>Mass Sponsors:  Grades 8 Obedience, 7 Obedience  and 3 Humility</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>Confession (at San Francisco Church)</b><br/>14:30 PM<br/><br/><b>Oath taking of New Nurses</b><br/>8:00 AM Aquinas Dome, Legazpi City<br/><br/><b>BED Advisers’ Meeting</b><br/>3:50 to 5:00 PM Mini-Theater<br/><br/><b>HED Grand Overnight Recollection of Graduating Students</b><br/>7:30 PM (March 12) to 6:00 AM (March 13) SEH Square, Main Campus<br/><br/><b>NHS due of Fourth Periodical Exam Questions for  the Undergraduate Students (c/o NHS Faculty)</b><br/>NHS Principal’s Office<br/><br/><b>BED Students’ Signing of Clearance at the Principal’s Office</b><br/>BED Principal’s Office<br/><br/><b>SLMLC Teachers’ Meeting and Monitoring (c/o CES Office)</b><br/>AM (Pacol, Naga City) PM (San Isidro, Naga City)";
dA[x++] = "20100313 <br/><br/><b>BED Community Extension Service (c/o Graphic Arts Club)</b><br/>7:00 to 10:00 AM Pacol/ San Isidro, Naga City<br/><br/><b>ECEDP Culminating Activity (with a Thanksgiving Mass)</b><br/>8:00 AM to 12:00 PM Auditorium, Main Campus<br/><br/><b>BEC Session (c/o CES Office)</b><br/>8:00 AM Pacol & San Isidro, NC<br/><br/><b>Placing of Vermiculture Bed (c/o CES Office)</b><br/>10:00 AM Pacol & San Isidro, NC<br/><br/><b>Co-Academic and Maintenance Personnel Vincentian Formation Session on Code of Ethics of the DC SLMES</b><br/>9:00 to 11:00 AM SES 301, Main Campus<br/><br/><b>Night High School Art Class Contest</b><br/>1:00 to 5:00 PM E-Mall<br/><br/><b>Graduate School Research Forum</b><br/>2:00 to 5:00 PM HED AVR";
dA[x++] = "20100314 <br/><br/><b>Fourth Sunday of Lent</b><br/><br/><b>BED Community Extension Service (c/o Luisitas)</b><br/>7:00 to 10:00 AM USI Campus<br/><br/><b>Accreditation and Equivalency Session (c/o CES Office)</b><br/>8:00 AM San Isidro, Naga City";
dA[x++] = "20100315 <br/><br/><b>Feast of St. Louise de Marillac</b><br/><br/><b>“Do not worry if for a long time you do not see things happening as you would like. Do whatever small things you possibly can in great peace and tranquility, in order to make room for the guidance of God for you.” (SLM)</b><br/><br/><b>Mass Sponsors: Grades 8 Obedience, 7 Obedience and 3 Humility</b><br/>7:30 AM Main Campus Chapel<br/><br/><b>BED Moderators’ Meeting</b><br/>3:50 to 5:00 PM Mini-Theater, Main Campus<br/><br/><b>USI & SLMS Pili Basic Education Graduating Students’ Grand Overnight Recollection</b><br/>6:00 PM (March 15) to 5:00 AM (March 16) SEH Square, Main Campus<br/><br/><b>March 15 to 19, 2010 BED and Night High School Graduation Practices for Graduating Students</b><br/>As scheduled";
dA[x++] = "20100316 <br/><br/><b>(Mass at Nearby Parish Churches)</b><br/><br/><b>HED Final Examinations –Day 1</b><br/><br/><b>CES Weekly Meeting and BEC</b><br/>8:30 AM CES Office, Main Campus";
dA[x++] = "20100317 <br/><br/><b>(Mass at Nearby Parish Churches)</b><br/><br/><b>Confession (at San Francisco Church)</b><br/>4:30 PM<br/><br/><b>College of Nursing Faculty Meeting</b><br/>2:00 PM Nursing Proficiency Center<br/><br/><b>Meeting with BLWs (c/o CES Office)</b><br/>PM San Isidro, Naga City<br/><br/><b>HED Final Examinations –Day 2</b><br/>As scheduled<br/><br/><b>March 17 to 19, 2010 BED and Night High School Fourth Periodical Exams for Undergrad Students</b>";
dA[x++] = "20100318 <br/><br/><b>(Mass at Nearby Parish Churches)</b><br/><br/><b>SLMLC Pacol and San Isidro Graduation (c/o CES Office)</b><br/>2:00 PM LCC Mall (Tentative)<br/><br/><b>HED Final Examinations –Day 3</b><br/>As scheduled<br/><br/><b>Our Lady Peñafrancia Healing Ministry Ticket Sales First Remittance</b><br/>RE/CM/VF Office";
dA[x++] = "20100319 <br/><br/><b>(Feast of St. Joseph, Spouse of Mary (Mass at Nearby Parish Churches)</b><br/><br/><b>Confession (at San Francisco Church)</b><br/>4:30 PM<br/><br/><b>Vincentian Formation Team Meeting</b><br/>8:30 AM RE/CM/VF Office<br/><br/><b>College of Nursing Clinical Graduation</b><br/>1:00 to 7:00 PM Auditorium, Main Campus";
dA[x++] = "20100320 <br/><br/><b>USI HED’s Baccalaureate Mass</b><br/>7:30 AM Naga Metropolitan Cathedral<br/><br/><b>BEC Session (c/o CES Office)</b><br/>8:00 AM Pacol, Naga City Consocep, Tigaon Cam. Sur<br/><br/><b>Vermiculture Monitoring (c/o CES Office)</b><br/>AM Pacol & San Isidro, NC<br/><br/><b>USI HED’s 87th Commencement Exercises</b><br/>PM St. Elizabeth’s Quadrangle";
dA[x++] = "20100321 <br/><br/><b>Fifth Sunday of Lent</b><br/><br/><b>BED and NHS Baccalaureate Mass</b><br/>7:30 AM Auditorium, Main Campus<br/><br/><b>Accreditation and Equivalency Session (c/o CES Office)</b><br/>8:00 AM San Isidro, Naga City<br/><br/><b>BED and NHS Graduation</b><br/>3:00 PM St. Elizabeth’s Quadrangle USI Main Campus<br/><br/><b>March 21 to 25, 2010 CASTED Administrators Benchmarking Tour </b><br/>Schools & Universities  Metro Manila";
dA[x++] = "20100322 <br/><br/><b>Mass at Nearby Parish Churches)</b><br/><br/><b>March 22 to 24, 2010 Submission of Grades of ECEDP Pupils and Grade 10 Students (c/o BED Faculty)</b><br/>BED Area Chairs, Vice-Principal for Academics and Principal’s Offices, USI Main <br/><br/><b>March 22 to 26, 2010 HED Enrolment for Summer 2010 Classes</b><br/>Respective Offices";
dA[x++] = "20100323 <br/><br/><b>USI Personnel Lenten Recollection *Vincentian Pilgrims Meeting after the Recollection</b><br/>8:00 AM to 5:00 PM Auditorium, Main Campus<br/><br/><b>March 23 to 25, 2010 Daughters of Charity’s Retreat for Renovation of vows";
dA[x++] = "20100324 <br/><br/><b>(Mass at Nearby Parish Churches)</b><br/><br/><b>Confession (at San Francisco Church)</b><br/>4:30 PM<br/><br/><b>Vincentian Formation Team Meeting</b><br/>8:30 AM RE/CM/VF Office<br/><br/><b>Night High School Due Date for Submission of Grade Sheets and Form 1 of 5th year Students (c/o Night High School Faculty)</b><br/>NHS Principal’s Office Main Campus<br/><br/><b>March 25 to 27, 2010 Submission of Grades of BED Undergraduate Students (c/o BED Faculty)</b><br/>BED Area Chairs, Vice-Principal for Academics and Principal’s Offices";
dA[x++] = "20100325 <br/><br/><b>Solemnity of the Annunciation of Our Lord Daughters of Charity’s Renovation of Vows</b><br/><br/><b>Recollection of Days With the Lord Organization</b><br/>Whole Day, Main Campus<br/><br/><b>CES Functional Literacy Session </b><br/>Tres Reyes, Bato, Cam. Sur<br/><br/><b>Night High School Due Date for Submission of Grade Sheets and Form 1 of Undergraduate Students (c/o Night High School Faculty)</b><br/>NHS Principal’s Office Main Campus<br/><br/><b>Last Day of Submission for Reaccreditation of Students’ Organizations for A/Y 2010-2011</b><br/><br/><b>March 25 to 27, 2010 Reading of Long Form for ECEDP Pupils and Grade 10 Students (c/o BED Faculty)</b>";
dA[x++] = "20100326 <br/><br/><b>(Mass at Nearby Parish Churches) Confession (at San Francisco Church)</b><br/>4:30 PM<br/><br/><b>College of Nursing – Departure to Manila of Second Batch of Nursing Student Affiliates</b><br/>7:00 AM USI Panganiban Campus<br/><br/><b>College of Nursing – Arrival from Manila of First Batch of Nursing Student Affiliates</b><br/>6:00 PM USI Main Campus<br/><br/><b>SLMLC Teachers’ Meeting and Monitoring (c/o CES Office)</b><br/>AM (Pacol, Naga City) PM (San Isidro, Naga City)<br/><br/><b>Vincentian Formation Team Module Making</b><br/>Overnight (TBA)";
dA[x++] = "20100327 <br/><br/><b>Night High School Due Date for Submission of Summary Sheets, Report Cards, Form 18-A and Permanent Record of 5th Year Students (c/o Night High School Faculty)</b><br/>NHS Principal’s Office Main Campus<br/><br/><b>Faith – Environment Project Monitoring (c/o CES Office)</b><br/>AM  Pacol and San Isidro, NC<br/><br/><b>BEC Session (c/o CES Office)</b><br/>AM Consocep, Tigaon Cam. Sur";
dA[x++] = "20100328 <br/><br/><b>PASSION (PALM) SUNDAY</b>";
dA[x++] = "20100329 <br/><br/><b>HOLY MONDAY (Mass at Nearby Parish Churches)</b><br/><br/><b>Recollection Batch 1BSN RLE Groups 1, 5, 6 and 10</b><br/>Overnight, CCPRC Concepcion Grande, NC<br/><br/><b>Night High School Due Date for Submission of All Forms of Undergraduate Students (c/o Night High School Faculty)</b><br/>NHS Principal’s Office Main Campus<br/><br/><b>March 29 to 31, 2010 Reading of Long Form for Undergrad Students (c/o BED Faculty)</b>";
dA[x++] = "20100330 <br/><br/><b>HOLY TUESDAY (Mass at Nearby Parish Churches)</b><br/><br/><b>Recollection Batch 1 BSN RLE Groups 11, 15, 19, 27 & 28</b><br/>Overnight, CCPRC Concepcion Grande, NC<br/><br/><b>Night High School Reading and Checking of All Forms</b><br/>NHS Principal’s Office";
dA[x++] = "20100331 <br/><br/><b>HOLY WEDNESDAY (Mass at Nearby Parish Churches)</b><br/><br/><b>Night High School Faculty Clearance Signing Day</b><br/>NHS Principal’s Office<br/><br/><b>Distribution of Cards for ECEDP Pupils and Grade 10 Students</b>";

// permission is granted to use this javascript provided that the below code is not altered
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;}
function loaded(i,f) {if (document.getElementById && document.getElementById(i) != null) f(); else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
function monthlength(month,year) {var dd = new Date(year, month, 0);return dd.getDate();}
var moy = ['January','February','March','April','May','June','July','August','September','October','November','December'];var today = new Date();var selDate = today.getFullYear()+getmmdd(today.getMonth()+1,today.getDate());
function dispCal(yy,mm) {if (mm < 0 || mm > 12) {alert('month must be between 1 and 12'); return false;} if (yy != 0 && (yy < 1901 || yy > 2100)) {alert('year must be after 1900 and before 2101'); return false;} var dow = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; var calendar = new Date();  var today = calendar.getDate(); calendar.setDate(1); if (yy > 1900) calendar.setFullYear(yy); if (mm > 0) calendar.setMonth(mm - 1); var yy = year = calendar.getFullYear(); var month = calendar.getMonth(); calendar.setDate(today); var weekday = calendar.getDay(); var daysInMonth = monthlength(month+1,year); var hilite_start = '<td width="30" style="background:' + todaybg + '" align="center"><b>'; var td_start = '<td width="30" align="center">'; var cal = '<div id="cal"><div style="border:1pt solid #cccccc;height:250px;width:338px"><table border="0" cellspacing="0" cellpadding="2" align="center" height="250px" width="338px"><tr><td colspan="7" style="background:' + headbg + '" align="center"><b>' + moy[month]  + ' ' + year + '<\/b><\/td><\/tr><tr>'; for(dex=0; dex < 7; dex++) {cal += td_start + dow[dex] + '</td>';} cal += '<\/tr><tr>'; var day2 = today; for (dex = today; dex > 6; dex -=7) day2 = dex; weekday -= day2 - 1; while (weekday < 0) weekday += 7; for(dex=0; dex < weekday; dex++) cal += td_start + ' <\/td>'; for(dex=1; dex <= daysInMonth; dex++) {if(weekday == 7) {cal += '</tr><tr>'; weekday = 0;} if(selDate==year+getmmdd(month+1,dex)) cal += hilite_start +'<span '+clickDate(dex,month,year) + '>'+ dex + '<\/span><\/b><\/td>'; else cal += td_start + '<span '+clickDate(dex,month,year) + '>' + dex + '<\/span><\/td>'; weekday += 1;} for(dex=weekday; dex < 7; dex++) cal += td_start + ' <\/td>'; cal += '<\/tr><\/table><\/div>';if (document.getElementById) {var mmb = month;  mm = month + 1; var yya = yyb = yy; if (mmb <1) {mmb += 12; yyb--;} var mma = month + 2; if (mma > 12) {mma -= 12; yya++;} var yb = yy -1; var ya = yy +1; cal += '<table border="0" cellspacing="0" cellpadding="2" width="210"><tr><td><a href="#" onclick="if (cala = dispCal('+yb+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><<</a></td><td><a href="#" onclick="if (cala = dispCal('+yyb+','+mmb+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><</a></td><td align="right"><a href="#" onclick="if (cala = dispCal('+yya+','+mma+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}">></a></td><td align="right"><a href="#" onclick="if (cala = dispCal('+ya+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}">>></a></td></tr></table>';} else {cal += '<div> </div>';} cal += '</div>'; return cal;}

function start() {var x = '<div id="calDate" style="border:0pt solid #cccccc; font-family:Arial, Helvetica, sans-serif; font-size: 12px; color:#000000; text-align:left; height:150px; width:539px"><\/div>'; var y = ''; if (tb == 't') y = x + dispCal(0,0); else y = dispCal(0,0) + x; document.getElementById('calendar').innerHTML = y; ev();}
loaded('calendar',start);

function clickDate(day, month, year) {var ct = nextDate(year + getmmdd(month+1,day));if (ct == '') ct = nextDate('0000' + getmmdd(month+1,day));if (ct == '') return 'style="color:'+textclr+'"'; else return 'style="cursor:pointer;color:'+linkclr+'" onclick="selDate = '+year+ getmmdd(month+1,day)+'; isDate(' + day + ',' + month + ',' + year + ');return false;"';}function isDate(dayVal,monthVal,yearVal) {var ct = nextDate(yearVal + getmmdd(monthVal+1,dayVal));if (ct == '') ct = nextDate('0000' + getmmdd(monthVal+1,dayVal));if (ct == '') ct = noMessage;document.getElementById('calDate').innerHTML = selDate + ':<br \/>' +ct; return false;}function nextDate(yymmdd) {var x = dA.length;for (var i = 0; i < x; i++) {if (dA[i].substr(0,8) == yymmdd) return dA[i].substr(8);}return '';}function getmmdd(mm,dd) {return (mm > 9 ? '' + mm : '0' + mm) + (dd > 9 ? dd : '0' + dd);}
function ev() {var ct = nextDate(selDate);var ct = nextDate(selDate);if (ct == '') ct = nextDate('0000' + selDate.substr(4));if (ct == '') ct = noMessage; document.getElementById('calDate').innerHTML = selDate + ':<br \/> ' +ct;}