rem: this.each(function() { if(this.nodeName.toLowerCase() != 'input') return; jQuery.datePicker.setDateWindow(this, a); if (!jQuery.datePicker.isInited(this)) { var chooseDate = jQuery.datePicker.getChooseDateStr(); var calBut; if(a && a.inputClick){ calBut = jQuery(this).attr({'class':'date-picker', 'title':chooseDate}) } else { calBut = jQuery("<a>").attr({'href':'javascript:;', 'class':'date-picker', 'title':chooseDate}) .append('<img src="/style/calendar.png" alt="'+chooseDate+'" />'); } jQuery(this).wrap( '<div class="date-picker-holder"></div>' ).before( jQuery("<div>").attr({'class':'popup-calendar'}) ).after( calBut ); calBut.click(jQuery.datePicker.show); jQuery.datePicker.setInited(this); } }); 
add: var hoursSelect = jQuery("<select>").attr("class","hours").width("3em").change(function(e) {jQuery.datePicker.updatetheInput(this);return false;}); 
context: 	this.each(function() {		if(this.nodeName.toLowerCase() != 'input') return;		jQuery.datePicker.setDateWindow(this, a);		if (!jQuery.datePicker.isInited(this)) {			var chooseDate = jQuery.datePicker.getChooseDateStr();			var calBut;			if(a && a.inputClick){				calBut = jQuery(this).attr({'class':'date-picker', 'title':chooseDate})			}			else {				calBut = jQuery("<a>").attr({'href':'javascript:;','class':'date-picker', 'title':chooseDate})				.append('<img src="/style/calendar.png" alt="'+chooseDate+'" />');			}			jQuery(this).wrap(				'<div class="date-picker-holder"></div>'			).before(				jQuery("<div>").attr({'class':'popup-calendar'})			).after(				calBut			);			calBut.click(jQuery.datePicker.show);			jQuery.datePicker.setInited(this);		}	});
meta: 37	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/37/6dd8234d010488a02a9ed969babec2cd61277658/datePicker.js/clean/webapp/js/datePicker.js