var CurSem = 2009; //update here, put in current year of June	function makeCalender(year,month,firstDay){		var monthLen = new Array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );		var dayText = new Array("SU","MO","TU","WE","TH","FR","SA");		var monthText = new Array("January","February","March","April","May","June","July","August","September","October","November","December");		var drawDays = "<tr bgcolor=#000080>";				var MonthFormatBegin = "<table border = '1'><tr><td align=center bgcolor=#ffdd55 colspan=7><font face=arial,helvetica size=-1>" + monthText[month] + " " + year;				var MonthFormatEnd = "</font></td></tr>" ;		var DaysCells = "";		var DaysNumber = 1;					for (var i = 0; i < 7; i++){			drawDays += "<td align=center width=14><font face=arial,helvetica size=-2 color=#ffffff>" + dayText[i] + "</td>";			}			drawDays += "</tr>";					for(var k = 0; k < 6; k++){			DaysCells += "<tr>";						for(var l = 0; l < 7; l++){								if( (l < firstDay && k == 0) || (DaysNumber > monthLen[month]) )							DaysCells += "<TD ALIGN=CENTER BGCOLOR=#cef3ff><font face=arial,helvetica size=-2 color= #000000>&nbsp;</TD>";										else{							DaysCells += "<TD ALIGN=CENTER BGCOLOR=#cef3ff><font face=arial,helvetica size=-2 color= #000000>" + DaysNumber + "</TD>";							++DaysNumber;						}				}					DaysCells += "</tr>";								}							DaysCells += "</table>";						 	var outputText = MonthFormatBegin + MonthFormatEnd + drawDays + DaysCells;		 			 	return outputText;}			//-----------------------------------------------------------------------	function drawCal(){											for(var i = 7; i < 12; ++i){ //from June to Dec					document.writeln("<table><tr><td>");						if (i == 7)			document.writeln("<a name=\"fall\"></a><h2> Fall " + (CurSem) + "</h2><br>")					var cur_date = new Date(CurSem,i,1);			var firstDay = cur_date.getDay();						strHTML = makeCalender( CurSem, i, firstDay );				document.writeln(strHTML);							document.writeln("<br>");			document.writeln("</td><td><ul>" + info(i));			document.writeln("</ul></td></tr></table>");			  			document.writeln("<hr />");		}					document.writeln("<a name=\"spring\"></a><h2> Spring - Summer " + (CurSem + 1 ) + "</h2><br />")			for(var i = 0; i < 5; ++i){ //from Jan to May					document.writeln("<table><tr><td>");						var cur_date = new Date(CurSem + 1,i,1);			var firstDay = cur_date.getDay();						strHTML = makeCalender( (CurSem + 1) , i, firstDay );				document.writeln(strHTML);							document.writeln("<br />");			document.writeln("</td><td><ul>" + info(i));			document.writeln("</ul></td></tr></table>");document.writeln("<hr />");			  				}		}	//begining of entering info//-----------------------------------------------------------------------	function info(i){				var textInfo = "";				//note: make sure all info is in quotes with closing quotes per line		switch(i){			case 0: //January--------------------------------------------------				textInfo += "<li>1 			Fee payment deadline for Pass 1 and Pass 2 registration</li>"				textInfo += "<li>11 - Feb. 12 	Open Registration</li>"				textInfo += "<li>15			Scholarship deadline for Fall 2010</li>"				textInfo += "<li>18			Martin Luther King Jr. Birthday (campus closed)</li>"				textInfo += "<li>26 - 27	No Registration or Add/Drop activity (Financial Aid Processing)</li>"				textInfo += "<li>27			University Convocation</li>"				textInfo += "<li>29			Last day to cancel registration with full refund of fees</li>"						break;							case 1: //February--------------------------------------------------							textInfo += "<li>1		Instruction begin</li>"				textInfo += "<li>1 - 12	Late Registration, Add/Drop continues (fees due February 12th )"				textInfo += "<li>12	 Final fee payment deadline"				textInfo += "<li>12	Last day to Add or register late</li>"				textInfo += "<li>12	Last day to Drop</li>" 				textInfo += "<li>12	Last day to submit Contract Course</li>" 				textInfo += "<br />Note: Contract Courses submitted by February 12th will be added to schedule by Census</li>" 				textInfo += "<li>15 - 26 Drop with a \"W\" - done on-line</li>" 				textInfo += "<li>15 - 26 Petition to Add with $20 Administrative Fee class (adding classes permitted because of serious and compelling reasons only)</li>"				textInfo += "<li>15	Final deadline for graduation applications to be submitted for Spring 2010</li>"				textInfo += "<li>15	Graduation Application Priority Filing date for December 2010</li>"				textInfo += "<li>26	Last day to add Special Studies/Independent Studies/Internships - Contract courses submitted after February 12th will appear on the student schedule in mid March.</li>"				textInfo += "<li>26	Last day to petition to add</li>"				textInfo += "<li>26	Last day to change grade mode - done on-line</li>"				textInfo += "<li>26	Last day to drop with a \"W\" - done on-line</li>"				break;							case 2: //March---------------------------------------------------							textInfo += "<li>1 	Census date</li>"				textInfo += "<li>1 - 19	REGISTRATION FREEZE - no processing</li>"				textInfo += "<li>1 - Apr 23	Petition to late withdraw from a class with $20 administrative fee begins (dropping classes permitted because of serious and compelling reasons only)</li>"				textInfo += "<li>29 - June 9*	*Summer 2010 Registration</li>"				textInfo += "<li>31	ERD due for First Registration eligibility Fall 2010</li>"				textInfo += "<li>31	Cesar Chavez Birthday (campus closed)</li>"			break;						case 3: //April----------------------------------------------------						textInfo += "<li>1	Final deadline for graduation applications to be submitted for August 2010</li>"				textInfo += "<li>5 - 9	Spring Break  (no classes, campus open)</li>"				textInfo += "<li>6	Last day to withdraw and receive pro-rated cancellation of fees</li>" 				textInfo += "<li>23	Last day to withdraw (no refund)</li>"				textInfo += "<li>24 - May 21 Withdrawing from the semester or University at this point follows same requirements as retroactive withdrawal (requires Petition form and documentation)</li>"						textInfo += "<li>26 - 30	Pass 1 Registration for Fall 2010 - by appointment only</li>"				break;						case 4: //May------------------------------------------------------								textInfo += "<li>3 - 21**	Pass 2 Registration for Fall 2010 - by appointment only</li>"				textInfo += "<li>21	Last day of instruction</li>"				textInfo += "<li>24 - 28	Final Exams</li>"				textInfo += "<li>29	Commencement</li>"										break;						case 5: //june-----------------------------------------------------												break;									case 6: //July-----------------------------------------------------				textInfo += "<li>1 Fees due (for those participating in April/May reg) Note: students dropped for non-payment of fees will have to re-add classes during open/late registration.</li>"				textInfo += "<li>3	Holiday weekend</li>"				textInfo += "<li>20 - Sept 9	Open Registration</li>"				textInfo += "<li>24	Instruction ends for 4-week and 8-week sessions</li>"								break;						case 7: //August--------------------------------------------------						textInfo += "<li>3 - Sept 9	last day for Open Registration/Add/Drop</li>"		textInfo += "<li>17 Aug 18	No registration (FA processing)</li>"		textInfo += "<li>25	Last day to drop classes with full refund/cancellation of fees</li>"		textInfo += "<li>26	Instruction Begins</li>"						break;						case 8: //September------------------------------------------------								textInfo += "<li><strong>7 Labor Day - Campus Closed</strong></li>"				textInfo += "<li>9 Last day to Add</li>" 				textInfo +=	"<li>9 Priority day to submit Contract Courses (Special Studies, Internships, Community Involvement, etc.)</i>"				textInfo +=	"<li>9 Last day to change from Full Time to Part Time fee status</i>"				textInfo +=	"<li>9 Final Fee Payment deadline. Students dropped for non-payment of fees will not be eligible for reinstatement for Fall 2009.</li>"				textInfo +=	"<li>10 - 22 Drop with a 'W'  (done on-line)</li>"								textInfo +=	"<li>10 - 22 Petition to Add with $20 administrative fee per class (adding classes permitted because of serious and compelling reasons only)</li>"					textInfo +=	"<li>15	Final deadline to submit Graduation Applications for December 2009</li>"				textInfo +=	"<li>15 Graduation Application priority filing September 15 date for students planning to graduate Spring 2010</li>"								textInfo +=	"<li>22 Final deadline to submit Contract Courses - note: class may not be added to your schedule until after the Registration Freeze (mid-October) </li>"				textInfo +=	"<li>22 Last day to Drop with 'W' (done online)</li>"				textInfo +=	"<li>22 Last day to Petition to Add</li>"				textInfo +=	"<li>22 Last day to file Grade Appeal from previous semester</li>"				textInfo +=	"<li>22	Last day to change Grading Basis (done on-line)</li>"				textInfo +=	"<li><b>23	Census Date</b></li>"				textInfo +=	"<li>23 - Oct 9 REGISTRATION FREEZE - no processing of adds or drops</li>"				textInfo +=	"<li>23 - Nov 7 Petition to Withdraw from a Class w/ $20 administrative fee (dropping classes permitted because of serious and compelling reasons)</li>"								break;						case 9: //October--------------------------------------------------								textInfo += "<li>12	Registration Processing continues</li>"				textInfo += "<li>30 ERD due for Pass 1 Registration</li>"						break;						case 10: //November------------------------------------------------							textInfo += "<li>1	Last day to withdraw and receive pro-rated cancellation of fees</li>"				textInfo += "<li>6	Last day to completely withdraw from the University (no refund)</li>"					textInfo += "<li>6	Last day to Petition to Withdraw from a Class</li>"									textInfo += "<li>9 - Dec 18	Withdrawing from the semester at this point follows same requirements as retroactive withdraw</li>"								textInfo += "<li><b>11	Veteran's Day Observed, campus closed</b></li>"					textInfo += "<li>16 - 24 	\"Advising Alert Weeks\"</li>"				textInfo += "<li>20 Transfer Orientation</li>"				textInfo += "<li>25 Thanksgiving Holiday; Campus Open, No Classes</li>"				textInfo += "<li>26 - 27 Thanksgiving Holiday; Campus Closed</li>"				textInfo += "<li><strong>30 - Dec 4 Pass One Reg for Spring 2010 (fees due Jan 1, 2010)</strong></li>"								break;						case 11: //December------------------------------------------------			textInfo += "<li>1 Thesis deadline for Fall 2009 graduates</li>"			textInfo += "<li>1 Thesis deadline for December 2009 graduates</li>"		textInfo += "<li><strong>7 - 18 Pass Two Reg</strong> : fees due January 1, 2010</li>"		textInfo += "<li>11 Last day of instruction</li>"		textInfo += "<li>14 - 18 Finals Week</li>"		textInfo += "<li><b>25 - Jan 1	Winter Holiday (campus closed)</b></li>"				break;								default:				textInfo = "error";			}		return textInfo;	}	