							
								function dayNumToName(nNum)
									{
									switch (nNum)
										{
										case 0: return 'Sunday';
										case 1: return 'Monday';
										case 2: return 'Tuesday';
										case 3: return 'Wednesday';
										case 4: return 'Thursday';
										case 5: return 'Friday';
										case 6: return 'Saturday';
										}
									}
							
								function dayNumToAbbrev(nNum)
									{
									return dayNumToName(nNum).substring(0, 3);
									}
							
								function monthNumToName(nNum)
									{
									switch (nNum)
										{
										case 0:  return 'January';
										case 1:  return 'February';
										case 2:  return 'March';
										case 3:  return 'April';
										case 4:  return 'May';
										case 5:  return 'June';
										case 6:  return 'July';
										case 7:  return 'August';
										case 8:  return 'September';
										case 9:  return 'October';
										case 10: return 'November';
										case 11: return 'December';
										}
									}
							
								function monthNumToAbbrev(nNum)
									{
									return monthNumToName(nNum).substring(0, 3);
									}
							
								function formatHour(nHour)
									{
									if (nHour > 12)
										nHour -= 12;
							
									if (nHour < 10)
										return '0' + nHour;
									else
										return '' + nHour;
									}
							
								function formatMOrS(mOrS)
									{
									if (mOrS < 10)
										return '0' + mOrS;
									else
										return '' + mOrS;
									}
							
								function formatAmPm(nHour)
									{
									if (nHour <= 11)
										return 'A.M.';
									else
										return 'P.M.';
									}
							
								function formatTime(curDate, lclOff, tzName)
									{
									var lclDate = new Date(curDate.getTime() + lclOff);
							
									with (lclDate)
										{
										var sDate = formatHour(getUTCHours())
											+ ':'
											+ formatMOrS(getUTCMinutes())
											+ ':'
											+ formatMOrS(getUTCSeconds())
											+ ' '
											+ formatAmPm(getUTCHours())
											+ ' '
											+ tzName;
										return sDate;
										}
									}