add: returnFormat = returnFormat.replace('yy',currentYear); 
context: function pickDate(e,inputDay){	var month = currentMonth/1 +1;	if(month<10)month = '0' + month;	var day;	if(!inputDay && this)day = this.innerHTML; else day = inputDay;	if(day/1<10)day = '0' + day;// WICKET ADDED		var week;	if (this.className == 'calendar_week_column')week = this.innerHTML; else week = getWeek(currentYear, currentMonth, day);	if(week/1<10)week = '0' + week;// DONE WICKET ADDED			if(returnFormat){		returnFormat = returnFormat.replace('dd',day);		returnFormat = returnFormat.replace('mm',month);		returnFormat = returnFormat.replace('yyyy',currentYear);		returnFormat = returnFormat.replace('hh',currentHour);		returnFormat = returnFormat.replace('ii',currentMinute);// WICKET ADDED				returnFormat = returnFormat.replace('ww',week);		returnFormat = returnFormat.replace('w',week/1);// DONE WICKET ADDED		returnFormat = returnFormat.replace('d',day/1);		returnFormat = returnFormat.replace('m',month/1);		returnFormat = returnFormat.replace('h',currentHour/1);		returnFormat = returnFormat.replace('a',currentAMPM);			returnDateTo.value = returnFormat;		try{			returnDateTo.onchange();		}catch(e){					}	}else{		for(var no=0;no<returnDateToYear.options.length;no++){			if(returnDateToYear.options[no].value==currentYear){				returnDateToYear.selectedIndex=no;				break;			}						}		for(var no=0;no<returnDateToMonth.options.length;no++){			if(returnDateToMonth.options[no].value==month){				returnDateToMonth.selectedIndex=no;				break;			}						}		for(var no=0;no<returnDateToDay.options.length;no++){			if(returnDateToDay.options[no].value==day){				returnDateToDay.selectedIndex=no;				break;			}						}				if(calendarDisplayTime){			for(var no=0;no<returnDateToHour.options.length;no++){				if(returnDateToHour.options[no].value==currentHour){					returnDateToHour.selectedIndex=no;					break;				}							}						for(var no=0;no<returnDateToMinute.options.length;no++){				if(returnDateToMinute.options[no].value==currentMinute){					returnDateToMinute.selectedIndex=no;					break;				}							}				}			}	closeCalendar();	}
meta: 5569	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5569/fcf85e6a42933538d3f91dc3c784d6928a573ee5/dhtmlgoodies_calendar.js/clean/wicket-calendar/src/main/java/org/wicketstuff/calendar/markup/html/form/dhtmlgoodies_calendar.js