         
         if (value is Date)
         {
-            selRangeMode = 4;
+            selRangeMode = SINGLE_DATE;
             
             _selectableRange = new Date(value.getFullYear(),
                                         value.getMonth(),

        {
            switch (disabledRangeMode[i])
            {
                case 1:
                case 2:
                case 3:
                {
                    removeRangeFromSelection(_disabledRanges[i].rangeStart,
                                             _disabledRanges[i].rangeEnd);
                    break;
                }

                case 4:
                {
                    removeRangeFromSelection(_disabledRanges[i],
                                             _disabledRanges[i]);
                    break;
                }
            }

            }
            else if (!value.rangeEnd && value.rangeStart)
            {
                selRangeMode = START_ONLY;
                _selectableRange.rangeStart = value.rangeStart;
                
                if (todaysYear >= _selectableRange.rangeStart.getFullYear())
