//within head tags place <script src="js/date-time.js"></script>//// use these line to call year<script language="javascript">writeDate('year');</script>//// use these line to call year<script language="javascript"> writeDate();</script>//// Date Functions var tDays = new Array();tDays[0] = "Sunday";tDays[1] = "Monday";tDays[2] = "Tuesday";tDays[3] = "Wednesday";tDays[4] = "Thursday";tDays[5] = "Friday";tDays[6] = "Saturday";var tMons = new Array();tMons[0] = "January";tMons[1] = "February";tMons[2] = "March";tMons[3] = "April";tMons[4] = "May";tMons[5] = "June";tMons[6] = "July";tMons[7] = "August";tMons[8] = "September";tMons[9] = "October";tMons[10] = "November";tMons[11] = "December";function writeDate( whatToReturn ) {	var dDate = new Date();	var today;		// append day	today = tDays[dDate.getDay()];	// append short month	today += ", " + tMons[dDate.getMonth()];	// append date	today += " " + dDate.getDate() + ",";	// append long year		today += (dDate.getYear()<2000) ? " " + (dDate.getYear()+1900) : " " + dDate.getYear();			if ( whatToReturn == "year" ) {	  document.write( (dDate.getYear()<2000) ? " " + (dDate.getYear()+1900) : " " + dDate.getYear() );	} else {		  document.write( today );	}}// END Date Functions
