rem: function check_date(date_name, show_time) { 
add: function check_date(date_name, show_time) { 
context: function check_date(date_name, show_time) {	var f = document.main_form;	var day_box   = get_element('day_'   + date_name);	var month_box = get_element('month_' + date_name);	var year_box  = get_element('year_'  + date_name);	var day     = element_value(day_box);	var month   = element_value(month_box);	var year    = element_value(year_box);	if (month == 2) {		if (day == 29) {			// if not leap year			if (((year % 4) != 0) || ( ((year % 100) == 0) && ((year % 400) != 0))) {				alert (year + " is not a leap year, there is no " + day + "th of Feburary.");				highlight_combo_element(day_box, 1);				day_box.focus();				return 0;			}		} else if (day > 29) {			alert ("There is no " + day + "th of Feburary.");			highlight_combo_element(day_box, 1);			day_box.focus();			return 0;		}// end if	}// end if	if ((month == 4 || month == 6 || month == 9 || month == 11) && day == 31) {		alert ("There is no 31st of " + get_combo_text(month_box) + ".");		highlight_combo_element(day_box, 1);		day_box.focus();		return 0;	}	var hour = 0;	var min  = 0;    // if we're showing the time boxes get them as well	if(show_time) {		var hour_box = get_element('hour_'   + date_name);		var min_box  = get_element('min_' + date_name);		hour = element_value(hour_box);		min  = element_value(min_box);	}// end if	var time = new Date(year, month - 1, day, hour, min, 0);	// divide by 1000, because getTime()	// returns milliseconds since epoch not seconds	var timestamp = time.getTime() / 1000;	set_hidden_field(date_name, timestamp);	return 1;}// end check_date();
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/740ce646ffda6c89fb5de463d9dbafb8ed1d7b06/html_form.js/clean/core/lib/html_form/html_form.js