rem: inputs[i].onfocus = function() { Cal.calForm.textInputHasFocus = true }; inputs[i].onblur = function() { Cal.calForm.textInputHasFocus = false }; 
add: inputs[i].onfocus = function() { Cal.calForm.detailTextInputHasFocus = true; }; inputs[i].onblur = function() { Cal.calForm.detailTextInputHasFocus = false; }; 
context:     this.setEventListeners = function() {        var inputs = document.getElementsByTagName('input');        var descrTxt = document.getElementById('eventdescr');        var allDayCheck = document.getElementById('eventallday');        var form = Cal.calForm.form;            // Add dummy function event listener so form doesn't        // submit on Enter keypress in Safari        form.onsubmit = function() { return false; };                // Cal selector        if (form.calSelectElem) {            form.calSelectElem.onchange = Cal.goSelCalMask;        }                // All text inputs        for (var i=0; i < inputs.length; i++) {            if (inputs[i].className == 'inputText') {                inputs[i].onfocus = function() { Cal.calForm.textInputHasFocus = true };                inputs[i].onblur = function() { Cal.calForm.textInputHasFocus = false };            }        }                // Recurrence        form.recurrence.onchange = Cal.calForm.setRecurEnd;        form.recurend.onclick = Cal.calForm.emptyTextInput;                // Description textarea        descrTxt.onfocus = function() {            Cal.calForm.textInputHasFocus = true;            Cal.calForm.textAreaHasFocus = true;        };        descrTxt.onblur = function() {            Cal.calForm.textInputHasFocus = false;            Cal.calForm.textAreaHasFocus = false;        };        // All-day event / normal event toggling        allDayCheck.onclick = function() { Cal.calForm.toggleBlockType() };        descrTxt = null; // Set DOM-node-ref to null to avoid IE memleak    };
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/01ea09f321293dd76302d22b85a3bbe10c75f804/cal_form.js/buggy/src/webapp/js/cosmo/ui/cal_form.js