add:  if (ev.data.start.tzId){ var timezone = cosmo.datetime.timezone.getTimezone(ev.data.start.tzId); if (!timezone){ self.clearTimezone(); } else {   var tzId = timezone.tzId; var region = tzId.split("/")[0]; self.setSelect("tzRegion", region); self.populateTimezoneSelector(region); self.setSelect("tzId", tzId); } } else { self.clearTimezone(); } 
context:     this.updateFromEvent = function(ev) {        var form = this.form;        var recur = ev.data.recurrenceRule;        var status = ev.data.status;        form.eventtitle.value = ev.data.title;        form.eventdescr.value = ev.data.description ?            ev.data.description : '';        form.status.value = ev.data.statusBar ? ev.data.status : '';        form.startdate.value = ev.data.start.strftime('%m/%d/%Y');        form.enddate.value = ev.data.end.strftime('%m/%d/%Y');        form.eventallday.checked = ev.data.allDay ? true : false;        if (ev.data.allDay) {            this.setTimeElem(null, 'start');            this.setTimeElem(null, 'end');        }        else {            this.setTimeElem(ev.data.start, 'start');            this.setTimeElem(ev.data.end, 'end');        }        if(status) {            this.setSelect("status", status);        } else {            this.setSelect("status", "CONFIRMED");        }        if (recur) {            this.setSelect('recurrence', recur.frequency);            form.recurend.disabled = false;            if (recur.endDate) {                this.setTextInput(form.recurend,                    recur.endDate.strftime('%m/%d/%Y'), false, false);            }            else {                this.setTextInput(form.recurend, 'mm/dd/yyyy', true, false);            }        }        else {            this.setSelect('recurrence', '');            this.setTextInput(form.recurend, 'mm/dd/yyyy', true, true);        }    };
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/964a50a99e8dfbf63c3589d866c2ef3cd90f87a9/cal_form.js/buggy/src/webapp/js/cosmo/ui/cal_form.js