rem: f.end_date.value = tz1+e.getDate()+"/"+tz2+(e.getMonth()+1)+"/"+e.getUTCFullYear(); 
add:  var url = 'index.php?m=public&a=date_format&dialog=1&field='+f.name+'.end_date&date=' + f.task_end_date.value; thread = window.frames['thread']; thread.location = url; 
context: function calcFinish(f) {	//var int_st_date = new String(f.task_start_date.value);	var int_st_date_time = new String(f.task_start_date.value + f.start_hour.value + f.start_minute.value);		var int_st_date = int_st_date_time;	var s = new Date(int_st_date_time.substring(0,4),(int_st_date_time.substring(4,6)-1),int_st_date_time.substring(6,8), int_st_date_time.substring(8,10), int_st_date_time.substring(10,12));	var durn = parseFloat(f.task_duration.value);//hours	var durnType = parseFloat(f.task_duration_type.value); //1 or 24	// goto start of next working day	s = next_working_day ( s );	//temporary variables	var inc = durn;	var e = s;	var hoursToAddToLastDay = 0;	var hoursToAddToFirstDay = durn;	var fullWorkingDays = 0;	if ( durnType==24 ) {		fullWorkingDays = Math.ceil(inc);	 	for (var i = 0; i < Math.ceil(fullWorkingDays); i++) {			e.setDate(s.getDate() + 1);			e.setMinutes( 0 );			if ( !isInArray(working_days, e.getDay()) ) {				fullWorkingDays++;			}				}			f.end_hour.value = f.start_hour.value;	} else {		if ( s.getHours() + inc > cal_day_end ) {			hoursToAddToFirstDay = cal_day_end - s.getHours();			if ( hoursToAddToFirstDay > workHours )				hoursToAddToFirstDay = workHours;			inc -= hoursToAddToFirstDay;			hoursToAddToLastDay = inc % workHours;			fullWorkingDays = Math.round((inc - hoursToAddToLastDay) / workHours);			if (hoursToAddToFirstDay != 0) {				e = s;				//we need to carefully add one day 				//we should to check if this non-working day				while ( true ) {					e.setDate(e.getDate()+1);					e.setMinutes( 0 );					if (isInArray(working_days, e.getDay())) {											break;					}				}					} 		}		e.setHours(e.getHours()+hoursToAddToFirstDay);			 	for (var i = 0; i < Math.ceil(fullWorkingDays); i++) {			e.setDate(s.getDate() + 1);			e.setMinutes( 0 );			if ( !isInArray(working_days, e.getDay()) ) {				fullWorkingDays++;			}				}		if (!(fullWorkingDays == 0 && hoursToAddToLastDay == 0)) {			e.setHours(cal_day_start+hoursToAddToLastDay);		}		// Do not end at start of day		//if ( e.getDate() != s.getDate() )		if ( durn != 0 )			e = prev_working_day( e );		f.end_hour.value = (e.getHours() < 10 ? "0"+e.getHours() : e.getHours());	}		var tz1 = "";	var tz2 = "";	if ( e.getDate() < 10 ) tz1 = "0";	if ( (e.getMonth()+1) < 10 ) tz2 = "0";	f.task_end_date.value = e.getUTCFullYear()+tz2+(e.getMonth()+1)+tz1+e.getDate();	//f.end_date.value = tz2+(e.getMonth()+1)+"/"+tz1+e.getDate()+"/"+e.getUTCFullYear(); // MM/DD/YY	f.end_date.value = tz1+e.getDate()+"/"+tz2+(e.getMonth()+1)+"/"+e.getUTCFullYear(); // DD/MM/YY	setAMPM(f.end_hour);}
meta: 6222	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6222/674243426d778354dc292886efd7b752dde01efd/addedit.js/clean/dotproject/modules/tasks/addedit.js