




/* Version: 1318003613 */


var DefaultFilterDatumView=Class.create(FilterView);var DefaultFilterDatum=Class.create(FilterModule,{View:'DefaultFilterDatumView',_arrAddIgnoreLinkTargetClasses:new Array('date-picker-control'),_tempValueCache:false,_checkSpecialValue:function(mixValue)
{mixValue=''+mixValue+'';return(mixValue.substr(0,1)=='5');},showDatepickerForms:function()
{var FormsContainer=$(this.View.Container.down('.filterDefaultDatum'));if(FormsContainer.hasClassName('hide'))
{changeDisplay(FormsContainer,true,false);}
this.datumSelected(true);},hideDatepickerForms:function()
{var FormsContainer=$(this.View.Container.down('.filterDefaultDatum'));if(!FormsContainer.hasClassName('hide'))
{changeDisplay(FormsContainer,false,true);}},showDatepicker:function(InputForm)
{var DatepickerObj=$(InputForm).up('div').down('.date-picker-control');$(DatepickerObj).triggerEvent('click');},datumSelected:function(blnForce)
{this._tempValueCache||(this._tempValueCache={Von:'',Bis:''});var Von=$F(this.View.Container.down('input',0));var Bis=$F(this.View.Container.down('input',1));if(!blnForce&&Von==this._tempValueCache.Von&&Bis==this._tempValueCache.Bis)
{return;}
this._tempValueCache.Von=Von;this._tempValueCache.Bis=Bis;this.setValue('5,'+Von+','+Bis);},setListeners:function($super)
{$super();var strKey='DefaultFilterDatum:datumSelected';this._EventRegistry[strKey]=this.datumSelected.bind(this,false);document.observe('datepicker:hide',this._EventRegistry[strKey]);var arrInputForms=$A(this.View.Container.getElementsByTagName('input'));var count=arrInputForms.length;for(var i=0;i<count;i++)
{var InputForm=arrInputForms[i];InputForm.observe('change',this._EventRegistry[strKey]);var strTempKey='DefaultFilterDatum:showDatepicker:'+i;this._EventRegistry[strTempKey]=this.showDatepicker.bind(this,InputForm);InputForm.observe('click',this._EventRegistry[strTempKey]);}},removeListeners:function($super)
{$super();document.stopObserving('datepicker:hide',this._EventRegistry['DefaultFilterDatum:datumSelected']);var arrInputForms=$A(this.View.Container.getElementsByTagName('input'));var count=arrInputForms.length;for(var i=0;i<count;i++)
{var InputForm=arrInputForms[i];InputForm.stopObserving('change',this._EventRegistry['DefaultFilterDatum:datumSelected']);var strTempKey='DefaultFilterDatum:showDatepicker:'+i;InputForm.stopObserving('click',this._EventRegistry[strTempKey]);}},removeValue:function($super,mixValue,blnExternalRemove)
{if(blnExternalRemove)
{this.hideDatepickerForms();}
$super(mixValue,blnExternalRemove);},_linkClickSelect:function($super,mixValue)
{if(this._checkSpecialValue(mixValue))
{return this.showDatepickerForms();}
else
{return $super(mixValue);}},_linkClickUnselect:function($super,mixValue)
{if(this._checkSpecialValue(mixValue))
{this.hideDatepickerForms();}
return $super(mixValue);},hightlightLinks:function($super,activeLink)
{var mixReturn=$super(activeLink);if(!this._checkSpecialValue(this.getLinkValue(activeLink)))
{this.hideDatepickerForms();}
return mixReturn;},hightlightRemoveByRelValue:function($super,relValue)
{var mixReturn=$super(relValue);if(this._checkSpecialValue(relValue))
{this.hideDatepickerForms();}
return mixReturn;}});





