rem: H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs; M.firstChild.data = (mins < 10) ? ("0" + mins) : mins; 
add: Calendar._setCellText(H,(hrs < 10) ? ("0" + hrs) : hrs); Calendar._setCellText(M,(mins < 10) ? ("0" + mins) : mins); 
context: 		(function(){			function makeTimePart(className, init, range_start, range_end) {				var part = Calendar.createElement("span", cell);				part.className = className;				part.appendChild(document.createTextNode(init));				part.calendar = cal;				part.ttip = Calendar._TT["TIME_PART"];				part.navtype = 50;				part._range = [];				if (typeof range_start != "number")					part._range = range_start;				else {					for (var i = range_start; i <= range_end; ++i) {						var txt;						if (i < 10 && range_end >= 10) txt = '0' + i;						else txt = '' + i;						part._range[part._range.length] = txt;					}				}				Calendar._add_evs(part);				return part;			};			var hrs = cal.date.getHours();			var mins = cal.date.getMinutes();			var t12 = !cal.time24;			var pm = (hrs > 12);			if (t12 && pm) hrs -= 12;			var H = makeTimePart("hour", hrs, t12 ? 1 : 0, t12 ? 12 : 23);			var span = Calendar.createElement("span", cell);			span.appendChild(document.createTextNode(":"));			span.className = "colon";			var M = makeTimePart("minute", mins, 0, 59);			var AP = null;			cell = Calendar.createElement("td", row);			cell.className = "time";			cell.colSpan = 2;			if (t12)				AP = makeTimePart("ampm", pm ? "pm" : "am", ["am", "pm"]);			else				cell.innerHTML = "&nbsp;";			cal.onSetTime = function() {				var hrs = this.date.getHours();				var mins = this.date.getMinutes();				var pm = (hrs > 12);				if (pm && t12) hrs -= 12;				H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs;				M.firstChild.data = (mins < 10) ? ("0" + mins) : mins;				if (t12)					AP.firstChild.data = pm ? "pm" : "am";			};			cal.onUpdateTime = function() {				var date = this.date;				var h = parseInt(H.firstChild.data, 10);				if (t12) {					if (/pm/i.test(AP.firstChild.data) && h < 12)						h += 12;					else if (/am/i.test(AP.firstChild.data) && h == 12)						h = 0;				}				var d = date.getDate();				var m = date.getMonth();				var y = date.getFullYear();				date.setHours(h);				date.setMinutes(parseInt(M.firstChild.data, 10));				date.setFullYear(y);				date.setMonth(m);				date.setDate(d);				this.dateClicked = false;				this.callHandler();			};		})();
meta: 6230	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6230/560c9abb29c1f47a9f4bb451cb5ad73214f7be6f/calendar.js/clean/phpgwapi/js/jscalendar/calendar.js