rem: this.selection_made = $F(this.target_element)!=""; 
add: this.selection_made = $F(this.target_element).strip()!==""; 
context:   initialize: function(target_element, options) {    this.target_element = $(target_element); // make sure it's an element, not a string    this.target_element.calendar_date_select = this;    // initialize the date control    this.options = $H({      embedded: false,      popup: nil,      time: false,      buttons: true,      year_range: 10,      calendar_div: nil,      close_on_click: nil,      minute_interval: 5,      popup_by: target_element,      month_year: "dropdowns",      onchange: this.target_element.onchange    }).merge(options || {});        this.selection_made = $F(this.target_element)!="";    this.use_time = this.options.time;        this.callback("before_show")    this.calendar_div = $(this.options.calendar_div);    if (!this.target_element) { alert("Target element " + target_element + " not found!"); return false;}        this.parseDate();        // by default, stick it by the target element (if embedded, that's where we'll want it to show up)    if (this.calendar_div == nil) { this.calendar_div = $( this.options.embedded ? this.target_element.parentNode : document.body ).build('div'); }    if (!this.options.embedded) {      this.calendar_div.setStyle( { position:"absolute", visibility: "hidden" } )      this.positionCalendarDiv();    }        this.calendar_div.addClassName("calendar_date_select");        if (this.options["embedded"]) this.options["close_on_click"]=false;    // logic for close on click    if (this.options['close_on_click']===nil )    {      if (this.options['time'])        this.options["close_on_click"] = false;      else        this.options['close_on_click'] = true;    }        // set the click handler to check if a user has clicked away from the document    if(!this.options["embedded"]) Event.observe(document.body, "mousedown", this.bodyClick_handler=this.bodyClick.bindAsEventListener(this));        this.initFrame();    if(!this.options["embedded"]) { this.positionCalendarDiv(true) }//.bindAsEventListener(this), 1);    this.callback("after_show")  },
meta: 9859	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9859/d1db215b9cffbc7af567adec0e673227b0f9aff3/calendar_date_select.js/clean/public/javascripts/calendar_date_select/calendar_date_select.js