var TWeekDay="wdSunday,wdMonday,wdTuesday,wdWednesday,wdThursday,wdFriday,wdSaturday".split(","),wdSunday=0,wdMonday=1,wdTuesday=2,wdWednesday=3,wdThursday=4,wdFriday=5,wdSaturday=6,CalendarWeekRule={FirstDay:0,FirstFullWeek:1,FirstFourDayWeek:2};DateTimeFormat=function(a,b,c,f,i,g,k,m){this.dateSeparator=a;this.longDatePattern=b;this.shortDatePattern=c;this.timeSeparator=f;this.longTimePattern=i;this.shortTimePattern=g;this.firstDay=k;this.firstWeekRule=m||2};
DateTimeFormat.prototype.getDateDisplayPattern=function(){for(var a=this.shortDatePattern,a=a.split("'"),b=1;b<a.length;b++)a[b]="";a=a.join("");return a=a.replace(RegExp("[^dmy"+regExp.escape(this.dateSeparator)+"]","gi"),"").trim()};DateTimeFormat.prototype.getTimeDisplayPattern=function(){for(var a=this.shortTimePattern,a=a.split("'"),b=1;b<a.length;b++)a[b]="";a=a.join("");return a=a.replace(RegExp("[^hnst"+regExp.escape(this.timeSeparator)+"]","gi"),"").trim()};
Date.prototype.addDays=function(a){var b=new Date(this);b.setDate(this.getDate()+a);return b};Date.prototype.addHours=function(a){var b=new Date(this);b.setHours(this.getHours()+a);return b};Date.prototype.addMinutes=function(a){var b=new Date(this);b.setMinutes(this.getMinutes()+a);return b};Date.prototype.addMonths=function(a){var b=new Date(this);b.setMonths(this.getMonths()+a);return b};Date.prototype.addSeconds=function(a){var b=new Date(this);b.setSeconds(this.getSeconds()+a);return b};
Date.prototype.addYears=function(a){var b=new Date(this);b.setFullYear(this.getFullYear()+a);return b};Date.prototype.age=function(){var a=new Date,b=a.getFullYear()-this.getFullYear();(a.getMonth()<this.getMonth()||a.getMonth()==this.getMonth()&&a.getDate()<this.getDate())&&b--;return b};Date.prototype.daysInMonth=function(){switch(this.getMonth()+1){case 4:case 6:case 9:case 11:return 30;case 2:return this.isLeapYear()?29:28;default:return 31}};
Date.prototype.formatString=function(a){var b=""+a;null==a||""==a||"undefined"==typeof a?b=Date.formatInfo.shortDatePattern+" "+Date.formatInfo.shortTimePattern:"s"==a?b="yyyy-mm-ddTHH:nn:ss":"d"==a?b=Date.formatInfo.shortDatePattern:"D"==a?b=Date.formatInfo.longDatePattern:"t"==a?b=Date.formatInfo.shortTimePattern:"T"==a?b=Date.formatInfo.longTimePattern:"f?"==a?b=0==this.getHours()&&0==this.getMinutes()?Date.formatInfo.longDatePattern:Date.formatInfo.longDatePattern+" "+Date.formatInfo.shortTimePattern:
"f"==a?b=Date.formatInfo.longDatePattern+" "+Date.formatInfo.shortTimePattern:"F?"==a?b=0==this.getHours()&&0==this.getMinutes()&&0==this.getSeconds()?Date.formatInfo.longDatePattern:Date.formatInfo.longDatePattern+" "+Date.formatInfo.longTimePattern:"F"==a?b=Date.formatInfo.longDatePattern+" "+Date.formatInfo.longTimePattern:"g?"==a?b=0==this.getHours()&&0==this.getMinutes()?Date.formatInfo.shortDatePattern:Date.formatInfo.shortDatePattern+" "+Date.formatInfo.shortTimePattern:"g"==a?b=Date.formatInfo.shortDatePattern+
" "+Date.formatInfo.shortTimePattern:"G?"==a?b=0==this.getHours()&&0==this.getMinutes()&&0==this.getSeconds()?Date.formatInfo.shortDatePattern:Date.formatInfo.shortDatePattern+" "+Date.formatInfo.longTimePattern:"G"==a&&(b=Date.formatInfo.shortDatePattern+" "+Date.formatInfo.longTimePattern);b=b.replace(/\%/g,"");b=b.replace(/\//g,Date.formatInfo.dateSeparator);b=b.replace(/-/g,Date.formatInfo.dateSeparator);b=b.replace(/:/g,Date.formatInfo.timeSeparator);b=b.replace(/yyyy/gi,this.getFullYear());
if(-1<b.toLowerCase().indexOf("yyy"))throw Error('Illegal yearformat "yyy".');b=b.replace(/yy/gi,(new String(this.getFullYear())).substr(2));b=b.replace(/^mm$/gi,fillOut(this.getMonth()+1));b=b.replace(/^mm([^m])/gi,fillOut(this.getMonth()+1)+"$1");b=b.replace(/([^m])mm$/gi,"$1"+fillOut(this.getMonth()+1));b=b.replace(/([^m])mm([^m])/gi,"$1"+fillOut(this.getMonth()+1)+"$2");b=b.replace(/^m$/gi,this.getMonth()+1);b=b.replace(/^m([^m])/gi,this.getMonth()+1+"$1");b=b.replace(/([^m])m$/gi,"$1"+(this.getMonth()+
1));b=b.replace(/([^m])m([^m])/gi,"$1"+(this.getMonth()+1)+"$2");b=b.replace(/^dd$/gi,fillOut(this.getDate()));b=b.replace(/^dd([^d])/gi,fillOut(this.getDate())+"$1");b=b.replace(/([^d])dd$/gi,"$1"+fillOut(this.getDate()));b=b.replace(/([^d])dd([^d])/gi,"$1"+fillOut(this.getDate())+"$2");b=b.replace(/^d$/gi,this.getDate());b=b.replace(/^d([^d])/gi,this.getDate()+"$1");b=b.replace(/([^d])d$/gi,"$1"+this.getDate());b=b.replace(/([^d])d([^d])/gi,"$1"+this.getDate()+"$2");12<this.getHours()?(b=b.replace(/hh/g,
fillOut(this.getHours()-12)),b=b.replace(/h/g,this.getHours()-12)):0==this.getHours()?(b=b.replace(/hh/g,"12"),b=b.replace(/h/g,"12")):(b=b.replace(/hh/g,fillOut(this.getHours())),b=b.replace(/h/g,this.getHours()));b=b.replace(/HH/g,fillOut(this.getHours()));b=b.replace(/H/g,this.getHours());b=b.replace(/nn/gi,fillOut(this.getMinutes()));b=b.replace(/n/gi,this.getMinutes());b=b.replace(/ss/gi,fillOut(this.getSeconds()));b=b.replace(/s/gi,this.getSeconds());12>this.getHours()?(b=b.replace(/tt/g,"AM"),
b=b.replace(/t/g,"A")):(b=b.replace(/tt/g,"PM"),b=b.replace(/t/g,"P"));b=b.replace(/mmmm/gi,months[this.getMonth()]);b=b.replace(/mmm/gi,months[this.getMonth()].substr(0,3));b=b.replace(/dddd/gi,days[this.getDay()]);b=b.replace(/ddd/gi,days[this.getDay()].substr(0,2));"s"==a&&("-"!=this.dateSeparator&&(b=b.replace(RegExp(regExp.escape(Date.formatInfo.dateSeparator),"gi"),"-")),":"!=this.timeSeparator&&(b=b.replace(RegExp(regExp.escape(Date.formatInfo.timeSeparator),"gi"),":")));return b};
Date.prototype.getWeek=function(){if(Date.formatInfo.firstWeekRule==CalendarWeekRule.FirstDay){var a=this.getFullYear(),b=(new Date(a,0,1)).getDay();0==b?b=6:b--;var c=(Date.UTC(a,this.getMonth(),this.getDate(),0,0,0)-Date.UTC(a,0,1,0,0,0))/864E5+1;4>b?b=Math.floor((c+b-1)/7)+1:(b=Math.floor((c+b-1)/7),0==b&&(a=(new Date(--a,0,1)).getDay(),0==a?a=6:a--,b=4>a?53:52))}else var a=this.getFullYear(),c=this.getMonth()+1,b=this.getDate()+Date.formatInfo.firstDay-1,f=Math.floor((14-c)/12),a=a+4800-f,a=b+
Math.floor((153*(c+12*f-3)+2)/5)+365*a+(Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400))-32045,a=(a+31741-a%7)%146097%36524%1461,b=Math.floor(a/1460),b=Math.floor(((a-b)%365+b)/7)+1;return b};Date.prototype.integrateDate=function(a){var b=new Date(this);b.setFullYear(a.getFullYear());b.setMonth(a.getMonth());b.setDate(a.getDate());return b};
Date.prototype.integrateTime=function(a){var b=new Date(this);b.setHours(a.getHours());b.setMinutes(a.getMinutes());b.setSeconds(a.getSeconds());b.setMilliseconds(a.getMilliseconds());return b};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return 0==a%4&&(a%100||0==a%1E3)?!0:!1};Date.prototype.isSame=function(a){return this.isSameDate(a)&&this.isSameTime(a)};
Date.prototype.isSameDate=function(a){return this.getDate()==a.getDate()&&this.getMonth()==a.getMonth()&&this.getFullYear()==a.getFullYear()};Date.prototype.isSameMonth=function(a){return this.getFullYear()==a.getFullYear()&&this.getMonth()==a.getMonth()};Date.prototype.isSameTime=function(a){return this.getSeconds()==a.getSeconds()&&this.getMinutes()==a.getMinutes()&&this.getHours()==a.getHours()};Date.prototype.isSameWeek=function(a){return this.getFullYear()==a.getFullYear()&&this.weekNo()==a.weekNo()};
Date.prototype.isSameYear=function(a){return this.getFullYear()==a.getFullYear()};Date.prototype.jsDate=function(){return"new Date("+this.getFullYear()+", "+this.getMonth()+", "+this.getDate()+", "+this.getHours()+", "+this.getMinutes()+", "+this.getSeconds()+", "+this.getMilliseconds()+")"};
Date.prototype.nextDay=function(a){a||(a=1);var b=new Date(this);b.getDate()+a<=b.daysInMonth()?b.setDate(b.getDate()+a):11>b.getMonth()?(b.setDate(b.getDate()+a-b.daysInMonth()),b.setMonth(b.getMonth()+1)):(b.setDate(b.getDate()+a-b.daysInMonth()),b.setYear(b.getFullYear()+1),b.setMonth(0));return b};
Date.prototype.nextMonth=function(){var a=new Date(this);if(11>a.getMonth())for(a.setMonth(a.getMonth()+1);a.getMonth()>this.getMonth()+1;)a=a.priorDay();else a.setMonth(0),a.setYear(a.getFullYear()+1);return a};Date.prototype.nextWeek=function(){return this.nextDay(7)};Date.prototype.nextYear=function(a){a||(a=1);var b=new Date(this);b.setYear(b.getFullYear()+a);return b};
Date.prototype.priorDay=function(a){a||(a=1);var b=new Date(this);1<=b.getDate()-a?b.setDate(b.getDate()-a):(0<b.getMonth()?b.setMonth(b.getMonth()-1):(b.setYear(b.getFullYear()-1),b.setMonth(11)),b.setDate(b.daysInMonth()-a+b.getDate()));return b};Date.prototype.priorWeek=function(){return this.priorDay(7)};
Date.prototype.priorMonth=function(){var a=new Date(this);if(0<a.getMonth())for(a.setMonth(a.getMonth()-1);a.getMonth()==this.getMonth();)a=a.priorDay();else a.setMonth(11),a.setYear(a.getFullYear()-1);return a};Date.prototype.priorYear=function(a){a||(a=1);var b=new Date(this);b.setYear(b.getFullYear()-a);return b};Date.prototype.round=function(){var a=new Date(this);a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0);return a};Date.prototype.weekNo=function(){return this.getWeek()};
Date.isDate=function(a){return isDate(a)};Date.isDateTime=function(a){return isDateTime(a)};Date.isTime=function(a){return isTime(a)};TDay=function(a,b,c,f){this.owner=a;this.date=new Date(b);this.disabled=c?!0:!1;this.className="undefined"!=typeof f?""+f:null};var AllowTime={yes:!0,no:!1,dontShow:"don't show"};
TDateInput=function(a,b,c,f,i,g){var k=i,m=c,h=null,j=g?new Date(g):null,e=[],d=!1,l=[],v=null,s=b,t=TDateInput.instances.length,q=null,n=new Date(9999,11,31,23,59,59),o=new Date(1753,0,1),p=j?j:new Date;this.allowTime=f;this.blockedMessage=blockedMessage[Languages.current];this.Class="TDateInput";this.doHide=!0;this.maxDateMessage=maxDateMessage[Languages.current];this.minDateMessage=minDateMessage[Languages.current];this.onshow=this.onchange=null;this.settingDate=!1;this.timer=0;if("undefined"==
typeof a||0==(""+a).length)throw Error('Illegal call to constructor. "name" cannot be empty.');if("undefined"==typeof f)this.allowTime=!1;if("undefined"==typeof b)throw Error('Illegal call to constructor. "element" cannot be empty.');if("undefined"==typeof c)throw Error('Illegal call to constructor. "button" cannot be empty.');if(k){if(!k.contains)throw Error('Illegal call to constructor. "block" should be an array of Date.');}else k=[];for(b=0;b<k.length;b++){if("function"!=typeof k[b].age)throw Error('Illegal call to constructor. "block" contains elements which are not of type Date.');
k[b]=k[b].round()}TDateInput.instances.add(this);this.div=document.createElement("DIV");this.div.id="div"+a.upperFirst();this.div.style.display="none";this.div.style.background="white";this.div.style.border="1px solid black";this.div.style.color="black";this.div.style.display="block";this.div.style.padding="0px";this.div.style.position="absolute";this.div.onmouseover=new Function("event","TDateInput.instances["+t+"].stopHide( this );");this.div.onmouseout=new Function("event","TDateInput.instances["+
t+"].hide( this );");if(isIE)this.frame=document.createElement("IFRAME"),this.frame.id="frm"+a.upperFirst(),this.frame.src="misc/default/empty.htm",this.frame.style.visiblity="hidden",this.frame.style.position="absolute",this.frame.style.border="0px solid",this.frame.onmouseover=new Function("event","TDateInput.instances["+t+"].stopHide( this );"),this.frame.onmouseout=new Function("event","TDateInput.instances["+t+"].hide( this );");bodyLoaded||addEvent(window,"load","TDateInput.instances["+t+"].init( event );");
this.blocked=function(a){return k.contains(a)};this.pButton=function(a){if("undefined"==typeof a)return m;m=Html.get(a)};this.pClearDays=function(a,b){v=new Date(a);q=new Date(b);e=[]};this.pClearFilled=function(){l=[]};this.pDataUrl=function(a){if("undefined"==typeof a)return h;h="undefined"!=typeof a.Class&&"Url"==a.Class?a:new Url(a);"string"==typeof s&&this.getData()};this.pDate=function(a,b,u){if("undefined"==typeof a)return j;if(!this.settingDate){this.settingDate=!0;if(null!=a){if("undefined"==
typeof a.isLeapYear)throw Error('Illegal assignment to date. Value is not a date object and not null ("'+valueString(a)+'").');!1==this.allowTime&&(a=a.round());if(a>=n)throw Error(this.maxDateMessage.replace("[MAXDATE]",n.formatString("d")));if(a<o)throw Error(this.minDateMessage.replace("[MINDATE]",o.formatString("d")));if(this.blocked(a.round()))throw Error(this.blockedMessage.replace("[DATE]",a.round().formatString("d")));}if(!isSame(j,a)&&(j=a,null==j||"19000101"==j.formatString("yyyymmdd")?
(this.pElement().value="",this.write()):(this.pShowDate(j),this.pFillElement(j)),"boolean"==typeof u&&u&&this.pHide(),this.onchange))b="undefined"==typeof b?createEvent("change"):createEvent(b),b.srcElement=s,this.onchange(b);this.settingDate=!1}};this.pDispose=function(){if(!d)d=!0,m=m.DateInput=null,this.frame=this.div=s=s.DateInput=null};this.pElement=function(a){if("undefined"==typeof a)return s;s=Html.get(a)};this.pFilled=function(){return l};this.pFillElement=function(a){if(null==a)this.pElement().value=
"";else{var b="000000"!=a.formatString("HHnnss");!0==this.allowTime&&b?this.pElement().value=a.formatString("g"):this.pElement().value=a.formatString("d")}};this.getData=function(a,b){null==b&&(b=p);if((!("undefined"!=typeof a&&null!=a)||!(a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()))&&null!=h){var u=h.add("date",b.formatString("d")).request("GET",null,!0);this.pClearFilled();k=[];if(null!=u&&null!=u.firstChild&&null!=u.firstChild.childNodes)for(var c=0;c<u.firstChild.childNodes.length;c++){var d=
u.firstChild.childNodes[c],e=parseBool(d.getAttribute("disabled")),f=d.getAttribute("class"),d=parseXmlDate(d.firstChild.nodeValue);if(Date.isDate(d))if(e){k.contains(d)||k.add(d);if(isSame(j,d)&&(j=null,s))s.value="";f&&this.addFilled(d,f)}else this.addFilled(d,f)}}};this.pGetDay=function(a){a=e[a];return"undefined"!=typeof a?a:null};this.pGetDays=function(){return e};this.pGetFirst=function(){return v};this.pGetLast=function(){return q};this.pGetRef=function(){return"TDateInput.instances["+t+"]"};
this.pHide=function(){this.div.style.display="none";this.frame&&this.frame.parentNode==document.body&&document.body.removeChild(this.frame)};this.pMaxDate=function(a){if("undefined"==typeof a)return n;if(a>new Date(9999,11,31))throw Error("Illegal assignment to maxDate. Max. value is 31-12-9999");if(a<new Date(1753,0,1))throw Error("Illegal assignment to maxDate. Min. value is 1-1-1753");if(a<=o)throw Error("Illegal assignment to maxDate. Date smaller than minDate");n=a.round();j&&j>=n&&this.pDate(n.priorDay());
p&&p>=n?this.pShowDate(n.priorDay()):this.write()};this.pMinDate=function(a){if("undefined"==typeof a)return o;if(a>new Date(9999,11,31))throw Error("Illegal assignment to minDate. Max. value is 31-12-9999");if(a<new Date(1753,0,1))throw Error("Illegal assignment to minDate. Min. value is 1-1-1753");if(a>=n)throw Error("Illegal assignment to minDate. Date greater than maxDate");o=a.round();j&&j<o&&this.pDate(o);p&&p<o?this.pShowDate(o):this.write()};this.pName=function(){return a};this.pShowDate=
function(a){var b=p;if("undefined"==typeof a)return p;p=a>=n?n.priorDay():a<o?o:a.round();if(!isSame(b,p)&&(this.getData(b,p),this.write(),this.onshow))this.onshow(this)};this.td=function(a){var b=!1,c="";e[a]=new TDay(this,a);a<o||a>=n||this.blocked(a)?(b=!0,c+=' disabled="true"',e[a].disabled=!0):c+=' onclick="'+this.pGetRef()+".setDate("+a.jsDate()+', event, true );"';c=a.getMonth()!=p.getMonth()?c+' class="calDayOM':c+' class="calDay';a.isSameDate(new Date)&&(c+=" calToday");j&&a.isSameDate(j)&&
(c+=" calSelected");if("boolean"==typeof l[a]&&!0==l[a])c+=" calFilled",e[a].className="calFilled";else if("string"==typeof l[a]&&""!=l[a])c+=" "+l[a],e[a].className=l[a];b&&(c+=" calDisabled");c+='"';return c=b?c+' style="cursor:default;"':c+' onmouseover="this.oldclass = this.className; this.className += \' calSelected\';" onmouseout="this.className = this.oldclass;"'};bodyLoaded&&this.init()};
TDateInput.prototype.addFilled=function(a,b){Date.isDate(a)||(a=new Date(a));if("function"==typeof a.age)this.pFilled()[a.round()]="undefined"==typeof b||null==b?!0:""+b,this.pFilled()[this.pFilled().length]=a;else throw Error('Illegal call to TDateInput.addFilled(). Parameter "date" is no date.');};TDateInput.prototype.button=function(){return this.pButton()};TDateInput.prototype.clearFilled=function(){this.pClearFilled()};TDateInput.prototype.days=function(){return this.pGetDays()};
TDateInput.prototype.dispose=function(){this.pDispose()};TDateInput.prototype.dataUrl=function(a){return this.pDataUrl(a)};TDateInput.prototype.date=function(a){return this.pDate(a)};TDateInput.prototype.dayNo=function(a){return a.getDay()<Date.formatInfo.firstDay?7-Date.formatInfo.firstDay+a.getDay():a.getDay()-Date.formatInfo.firstDay};TDateInput.prototype.element=function(){return this.pElement()};TDateInput.prototype.filled=function(){return this.pFilled()};TDateInput.prototype.getDay=function(a){return this.pGetDay(a)};
TDateInput.prototype.hide=function(a,b){if(this.doHide)"undefined"==typeof b&&(b=50),this.timer=setTimeout(this.pGetRef()+".pHide();",b)};
TDateInput.prototype.init=function(){this.pElement(this.pElement());this.pElement().DateInput=this;""!=this.pElement().value&&this.setDate(this.pElement());var a=this.pGetRef()+".pElement()";if(this.pElement().onchange)this.onchange=new Function("event",filterEvent(this.pElement().onchange).replace("this",a)),this.pElement().onchange=null;addEvent(this.pElement(),"change",this.pGetRef()+".setDate("+a+", event);");if(isIE)this.pElement().style.behavior="";this.pButton(this.pButton());this.pButton().DateInput=
this;addEvent(this.pButton(),"mouseout",this.pGetRef()+".hide(this, 500);");addEvent(this.pButton(),"mouseover",this.pGetRef()+".stopHide(this);");addEvent(this.pButton(),"click",this.pGetRef()+".show(this)");if(this.pButton().hideFocus)this.pButton().hideFocus=!0;this.write()};TDateInput.prototype.maxDate=function(a){return this.pMaxDate(a)};TDateInput.prototype.minDate=function(a){return this.pMinDate(a)};
TDateInput.prototype.month=function(){for(var a=this.pGetFirst(),b=this.pGetLast(),c=b.nextDay(),f=[],i=a;i<c;i=i.nextDay())f[i]=this.getDay(i);return{first:a,last:b,days:f}};TDateInput.prototype.name=function(){return this.pName()};TDateInput.prototype.nextMonth=function(){try{return this.pShowDate(this.pShowDate().nextMonth()),!0}catch(a){return this.settingDate=!1,a.description?alert(a.description):a.message?alert(a.message):alert(a),!1}};
TDateInput.prototype.priorMonth=function(){try{return this.pShowDate(this.pShowDate().priorMonth()),!0}catch(a){return this.settingDate=!1,a.description?alert(a.description):a.message?alert(a.message):alert(a),!1}};TDateInput.prototype.showDate=function(a){return this.pShowDate(a)};
TDateInput.prototype.setDate=function(a,b,c){if(a==this.pElement()){if(a=0<(""+this.pElement().value).length?!1!=this.allowTime?isDateTime(this.pElement().value):isDate(this.pElement().value):null,!1==a)return a=getIllegalDateMessage(),alert(a),isIE?this.pElement().select():(this.pFillElement(this.date()),this.pElement().focus()),"undefined"!=typeof b?cancelEvent(b):!1}else null!=a&&"function"!=typeof a.age&&(a=!1!=this.allowTime?isDateTime(a):isDate(a));var f=this.pDate();!1!=this.allowTime&&null!=
a&&"000000"==a.formatString("HHnnss")&&null!=f&&"000000"!=f.formatString("HHnnss")&&(a=a.integrateTime(f));try{return this.pDate(a,b,c),!0}catch(i){this.settingDate=!1;i.description?alert(i.description):i.message?alert(i.message):alert(i);if(isIE){if(this.pElement().select(),"undefined"!=typeof b)b.returnValue=!1}else this.date()?this.pFillElement(this.date()):this.pElement().value="",this.pElement().focus();return!1}};
TDateInput.prototype.setMonth=function(a){try{var b=new Date(this.pShowDate());b.setMonth(a.value);this.pShowDate(b);return!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};TDateInput.prototype.setYear=function(a){try{var b=new Date(this.pShowDate());b.setYear(a.value);this.pShowDate(b);return!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};
TDateInput.prototype.show=function(){this.div.parentNode!=document.body&&document.body.appendChild(this.div);isIE&&document.body.appendChild(this.frame);"none"==this.div.style.display&&this.date()&&this.pShowDate(this.date());var a=getLeft(this.pButton())+this.pButton().offsetWidth,b=getTop(this.pButton())+this.pButton().offsetHeight,c=getLeft(this.pElement()),f=getTop(this.pElement())+this.pElement().offsetHeight;this.x=c;this.y=Math.max(b,f);this.div.style.left=this.x+"px";this.div.style.top=this.y+
"px";this.div.style.zIndex=9999;this.div.style.display="";this.div.style.left=a-this.div.offsetWidth+"px";if("undefined"!=typeof this.frame)this.frame.style.zIndex=9998,this.frame.style.left=this.div.offsetLeft+"px",this.frame.style.top=this.div.offsetTop+"px",this.frame.style.width=this.div.offsetWidth+"px",this.frame.style.height=this.div.offsetHeight+"px",this.frame.style.visibility="visible"};TDateInput.prototype.startHiding=function(){this.doHide=!0};
TDateInput.prototype.stopHiding=function(){this.doHide=!1};TDateInput.prototype.stopHide=function(){clearTimeout(this.timer);this.timer=0};
TDateInput.prototype.write=function(){this.name();var a=new Date(this.pShowDate()),b=new Date(this.pMinDate()),c=new Date(this.pMaxDate()),f=a.getFullYear(),i=a.getMonth(),g=new Date(f,i,1),k=g.nextMonth(),m=this.dayNo(g),h=new Date(a),j=a.nextMonth(),e="";this.pClearDays(g,k.priorDay());h.setDate(1);h=h.priorDay();h=h<b?' disabled="true"':"";j.setDate(1);var j=j>c?' disabled="true"':"",e='<table border="0" cellspacing="0" cellpadding="3" style="float:left;">\r\n\t<col/><col/><col/><col/><col/><col/><col/><col/>\r\n\t<tr style="font-size:90%;" onmouseover="'+
this.pGetRef()+'.stopHide( this );">\r\n\t\t<td colspan="5" align="center" style="padding:0px 0px; border-bottom:1px solid black;">\r\n\t\t\t<select onchange="'+this.pGetRef()+".setMonth( this ); "+this.pGetRef()+'.startHiding();" onmousedown="'+this.pGetRef()+".stopHide( this ); "+this.pGetRef()+'.stopHiding();" onmouseleave="'+this.pGetRef()+'.startHiding();" style="width:100%">\r\n',d=0,l=11;d<b.getMonth()&&f==b.getFullYear()&&(d=b.getMonth());for(l>c.getMonth()&&f==c.getFullYear()&&(l=c.getMonth());d<
l+1;d++)e+='\t\t\t\t<option value="'+d+'"'+(d==i?' selected="selected"':"")+">"+months[d]+"</option>\r\n";e+='\t\t\t</select>\r\n\t\t</td>\r\n\t\t<td colspan="3" align="center" style="padding:0px 0px; border-bottom:1px solid black;">\r\n\t\t\t<select onchange="'+this.pGetRef()+".setYear( this ); "+this.pGetRef()+'.startHiding();" onmousedown="'+this.pGetRef()+".stopHide( this ); "+this.pGetRef()+'.stopHiding();" onmouseleave="'+this.pGetRef()+'.startHiding();" style="width:100%">\r\n';d=a.getFullYear()-
75;l=a.getFullYear()+75;d<b.getFullYear()&&(d=b.getFullYear());for(l>c.getFullYear()&&(l=c.getFullYear());d<l+1;d++)e+='\t\t\t\t<option value="'+d+'"'+(d==f?' selected="selected"':"")+">"+d+"</option>\r\n";e+='\t\t\t</select>\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr id="trButtons" style="font-size:90%;" onmouseover="'+this.pGetRef()+'.stopHide( this );">\r\n\t\t<td style="padding:0px 0px;"><button type="button"'+h+' onclick="'+this.pGetRef()+'.priorMonth();" onmouseover="'+this.pGetRef()+'.stopHide( this );" style="width:100%; margin:0px;">&lt;</button></td>\t\t<td colspan="6" align="center">'+
a.formatString("MMMM yyyy")+'</td>\r\n\t\t<td style="padding:0px 0px;"><button type="button"'+j+' onclick="'+this.pGetRef()+'.nextMonth();"  onmouseover="'+this.pGetRef()+'.stopHide( this );" style="width:100%; margin:0px;">&gt;</button></td>\r\n\t</tr>\r\n\t<tr height="20" style="font-size:90%;">\r\n\t\t<td><img src="img/default/pixTrans.gif" height="1" width="20" /></td>\r\n';for(d=Date.formatInfo.firstDay;7>d;d++)e+='\t\t<td class="calDayHeader"><img src="img/default/pixTrans.gif" height="1" width="20" /><br/>'+
days[d].substr(0,2)+"</td>\r\n";for(d=0;d<Date.formatInfo.firstDay;d++)e+='\t\t<td class="calDayHeader"><img src="img/default/pixTrans.gif" height="1" width="20" /><br/>'+days[d].substr(0,2)+"</td>\r\n";e+='\t</tr>\r\n\t<tr style="font-size:90%;">\r\n\t\t<td class="calWeekNo" style="cursor:default;">'+g.priorDay(m).weekNo()+"</td>\r\n";for(d=m;0<d;d--)h=g.priorDay(d),e+="\t\t<td"+this.td(h)+">"+h.formatString("%d")+"</td>\r\n";for(;g<k;)e+="\t\t<td"+this.td(g)+">"+g.formatString("%d")+"</td>\r\n",
g=g.nextDay(),m=this.dayNo(g),g<k&&0==m&&(e+='\t</tr>\r\n\t<tr style="font-size:90%;">\r\n\t\t<td class="calWeekNo" style="cursor:default;">'+g.weekNo()+"</td>");if(m)for(d=0;20>d&&7>m;g=g.nextDay(),d++)e+="<td"+this.td(g)+">"+g.formatString("%d")+"</td>",m++;this.div.innerHTML=e+"\t</tr>\r\n</table>";if(this.frame)this.frame.style.left=this.div.offsetLeft+"px",this.frame.style.top=this.div.offsetTop+"px",this.frame.style.width=this.div.offsetWidth+"px",this.frame.style.height=this.div.offsetHeight+
"px"};TDateInput.instances=[];TDateInput.dispose=function(){for(var a=0;a<TDateInput.instances.length;a++)TDateInput.instances[a].dispose(),TDateInput.instances[a]=null;TDateInput.instances=[]};addEvent(window,"unload","TDateInput.dispose();");var Period={Day:1,Week:7,Month:31};
TCalendar=function(a,b,c,f,i,g){var k=f,m=null,h=i?new Date(i):null,j=[],e=!1,d=!1,l=[],v=null,s=TCalendar.instances.length,t=null,q=new Date(9999,11,31,23,59,59),n=new Date(1753,0,1),o=b,p=Period.Day,r=h?h:new Date,w="boolean"==typeof g?g:!0;this.allowTime=c;this.blockedMessage=blockedMessage[Languages.current];this.Class="TCalendar";this.maxDateMessage=maxDateMessage[Languages.current];this.minDateMessage=minDateMessage[Languages.current];this.onshow=this.onchange=null;this.timer=0;if("undefined"==
typeof a||0==(""+a).length)throw Error('Illegal call to constructor. "name" cannot be empty.');"undefined"==typeof c&&(c=!1);if("undefined"==typeof b)throw Error('Illegal call to constructor. "parent" cannot be empty.');if(k){if(!k.contains)throw Error('Illegal call to constructor. "block" should be an array of Date.');}else k=[];for(b=0;b<k.length;b++){if("function"!=typeof k[b].age)throw Error('Illegal call to constructor. "block" contains elements which are not of type Date.');k[b]=k[b].round()}TCalendar.instances.add(this);
this.div=document.createElement("DIV");this.div.id="div"+a.upperFirst();this.div.style.border="0px solid";this.div.style.color="black";this.div.style.display="block";this.div.style.padding="0px";bodyLoaded||addEvent(window,"load","TCalendar.instances["+s+"].init();");this.blocked=function(a){return k.contains(a)};this.pClearDays=function(a,b){v=new Date(a);t=new Date(b);j=[]};this.pClearFilled=function(){l=[]};this.pDataUrl=function(a){if("undefined"==typeof a)return m;m="undefined"!=typeof a.Class&&
"Url"==a.Class?a:new Url(a);"string"==typeof o&&this.getData()};this.pDate=function(a,b,c){if("undefined"==typeof a)return h;if(null!=a){if("function"!=typeof a.age)throw Error('Illegal assignment to date. Value is not a date object and not null ("'+valueString(a)+'").');this.allowTime||(a=a.round());if(a>=q)throw Error(this.maxDateMessage.replace("[MAXDATE]",q.formatString("d")));if(a<n)throw Error(this.maxDateMessage.replace("[MINDATE]",n.formatString("d")));if(this.blocked(a.round()))throw Error(this.blockedMessage.replace("[DATE]",
a.round().formatString("d")));}if(!isSame(h,a)&&(h=a,null==h||e?this.write():this.pShowDate(h),this.onchange))if("undefined"!=typeof b)a=createEvent(b),"undefined"!=typeof c?(c.calendar=this,a.srcElement=c):a.srcElement=this,this.onchange(this,a);else this.onchange(this)};this.pDirect=function(a){if("undefined"==typeof a)return e;e=a?!0:!1};this.pDispose=function(){if(!d)d=!0,this.div=o=o.Calendar=null};this.pFilled=function(){return l};this.getData=function(a,b){null==b&&(b=r);if((!("undefined"!=
typeof a&&null!=a)||!(a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()))&&null!=m){var c=m.add("date",b.formatString("d")).request("GET",null,!0);this.pClearFilled();k=[];if(null!=c&&null!=c.firstChild&&null!=c.firstChild.childNodes)for(var d=0;d<c.firstChild.childNodes.length;d++){var e=c.firstChild.childNodes[d],f=parseBool(e.getAttribute("disabled")),g=e.getAttribute("class"),e=parseXmlDate(e.firstChild.nodeValue);Date.isDate(e)&&(f?(k.contains(e)||k.add(e),isSame(h,e)&&this.pDate(null),
g&&this.addFilled(e,g)):this.addFilled(e,g))}}};this.pGetDay=function(a){a=j[a];return"undefined"!=typeof a?a:null};this.pGetDays=function(){return j};this.pGetFirst=function(){return v};this.pGetFirst=function(){return v};this.pGetLast=function(){return t};this.pGetRef=function(){return"TCalendar.instances["+s+"]"};this.pMaxDate=function(a){if("undefined"==typeof a)return q;if(a>new Date(9999,11,31))throw Error("Illegal assignment to maxDate. Max. value is 31-12-9999");if(a<new Date(1753,0,1))throw Error("Illegal assignment to maxDate. Min. value is 1-1-1753");
if(a<=n)throw Error("Illegal assignment to maxDate. Date smaller than minDate");q=a.round();h&&h>=q&&this.pDate(q.priorDay());r&&r>=q?this.pShowDate(q.priorDay()):this.write()};this.pMinDate=function(a){if("undefined"==typeof a)return n;if(a>new Date(9999,11,31))throw Error("Illegal assignment to minDate. Max. value is 31-12-9999");if(a<new Date(1753,0,1))throw Error("Illegal assignment to minDate. Min. value is 1-1-1753");if(a>=q)throw Error("Illegal assignment to minDate. Date greater than maxDate");
n=a.round();h&&h<n&&this.pDate(n);r&&r<n?this.pShowDate(n):this.write()};this.pName=function(){return a};this.pParent=function(a){if("undefined"==typeof a)return o;o=Html.get(a)};this.pPeriod=function(a){if("undefined"==typeof a)return p;switch(a){case Period.Week:a=Period.Week;break;case Period.Month:a=Period.Month;break;default:a=Period.Day}p!=a&&(p=a,(a=e?r:h)?this.pShowDate(a):this.write())};this.pShowDate=function(a,b,c){var d=r;if("undefined"==typeof a)return r;r=a>=q?q.priorDay():a<n?n:a.round();
if(!isSame(d,r)&&(this.getData(d,r),e?this.pDate(r,b,c):this.write(),this.onshow))this.onshow(this)};this.pShowSelects=function(a){if("undefined"==typeof a)return w;w=a;if(a=Html.get("trSelects"))a.style.display=w?"block":"none"};this.td=function(a){var b=!1,c="";j[a]=new TDay(this,a);a<n||a>=q||this.blocked(a)?(b=!0,c+=' disabled="true"',j[a].disabled=!0):c+=' onclick="'+this.pGetRef()+".setDate("+a.jsDate()+', event );"';c=a.getMonth()!=r.getMonth()?c+' class="calDayOM':c+' class="calDay';a.isSameDate(new Date)&&
(c+=" calToday");var d=e?null==h?r:h:h;if(d)switch(Log.write("FPeriod",p),p){case Period.Day:h&&a.isSameDate(h)&&(c+=" calSelected");break;case Period.Week:a.isSameWeek(d)&&(c+=" calSelected");break;case Period.Month:Log.write("sel",d),Log.write("date",a),Log.write("date.isSameMonth( sel )",a.isSameMonth(d)),a.isSameMonth(d)&&(c+=" calSelected")}if("boolean"==typeof l[a]&&!0==l[a])c+=" calFilled",j[a].className="calFilled";else if("string"==typeof l[a]&&""!=l[a])c+=" "+l[a],j[a].className=l[a];b&&
(c+=" calDisabled");c+='"';return c=b?c+' style="cursor:default;"':c+' onmouseover="this.oldclass = this.className; this.className += \' calSelected\';" onmouseout="this.className = this.oldclass;"'};bodyLoaded&&this.init()};
TCalendar.prototype.addFilled=function(a,b){"function"!=typeof a.age&&(a=new Date(a));if("function"==typeof a.age)this.pFilled()[a.round()]="undefined"==typeof b||null==b?!0:""+b,this.pFilled()[this.pFilled().length]=a;else throw Error('Illegal call to TCalendar.addFilled(). Parameter "date" is no date.');};TCalendar.prototype.clearFilled=function(){this.pClearFilled()};TCalendar.prototype.days=function(){return this.pGetDays()};TCalendar.prototype.dispose=function(){this.pDispose()};
TCalendar.prototype.dataUrl=function(a){return this.pDataUrl(a)};TCalendar.prototype.date=function(a){return this.pDate(a)};TCalendar.prototype.dayNo=function(a){return a.getDay()<Date.formatInfo.firstDay?7-Date.formatInfo.firstDay+a.getDay():a.getDay()-Date.formatInfo.firstDay};TCalendar.prototype.direct=function(a){return this.pDirect(a)};TCalendar.prototype.filled=function(){return this.pFilled()};TCalendar.prototype.getDay=function(a){return this.pGetDay(a)};TCalendar.prototype.hideSelects=function(){this.pShowSelects(!1)};
TCalendar.prototype.init=function(){this.pParent(this.pParent());this.write();this.parent().appendChild(this.div);this.div.style.width=this.div.firstChild.offsetWidth+"px"};TCalendar.prototype.maxDate=function(a){return this.pMaxDate(a)};TCalendar.prototype.minDate=function(a){return this.pMinDate(a)};TCalendar.prototype.month=function(){for(var a=this.pGetFirst(),b=this.pGetLast(),c=b.nextDay(),f=[],i=a;i<c;i=i.nextDay())f[i]=this.getDay(i);return{first:a,last:b,days:f}};
TCalendar.prototype.name=function(){return this.pName()};TCalendar.prototype.nextMonth=function(a,b){try{return this.pShowDate(this.pShowDate().nextMonth(),b,a),!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};TCalendar.prototype.priorMonth=function(a,b){try{return this.pShowDate(this.pShowDate().priorMonth(),b,a),!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};TCalendar.prototype.parent=function(){return this.pParent()};
TCalendar.prototype.period=function(a){return this.pPeriod(a)};TCalendar.prototype.showDate=function(a){return this.pShowDate(a)};TCalendar.prototype.showSelects=function(){this.pShowSelects(!0)};
TCalendar.prototype.setDate=function(a,b){null!=a&&"undefined"==typeof a.isLeapYear&&(a=this.allowTime?isDateTime(a):isDate(a));this.allowTime&&"000000"==a.formatString("HHnnss")&&null!=this.pDate()&&"000000"!=this.pDate().formatString("HHnnss")&&(a=a.integrateTime(this.pDate()));try{return this.pDate(a,b),!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};
TCalendar.prototype.setMonth=function(a){try{var b=new Date(this.pShowDate());b.setMonth(a.value);this.pShowDate(b);return!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};TCalendar.prototype.setYear=function(a){try{var b=new Date(this.pShowDate());b.setYear(a.value);this.pShowDate(b);return!0}catch(c){return c.description?alert(c.description):c.message?alert(c.message):alert(c),!1}};
TCalendar.prototype.write=function(){this.name();var a=new Date(this.pShowDate()),b=new Date(this.pMinDate()),c=new Date(this.pMaxDate()),f=a.getFullYear(),i=a.getMonth(),g=new Date(f,i,1),k=g.nextMonth(),m=this.dayNo(g),h=new Date(a),j=a.nextMonth(),e="";this.pClearDays(g,k.priorDay());h.setDate(1);h=h.priorDay();h=h<b?' disabled="true"':"";j.setDate(1);var j=j>c?' disabled="true"':"",e='<table border="0" cellspacing="0" cellpadding="3" style="float:left;">\r\n\t<col/><col/><col/><col/><col/><col/><col/><col/>\r\n\t<tr id="trSelects" style="font-size:90%;'+
(this.pShowSelects()?"":" display:none;")+'">\r\n\t\t<td colspan="5" align="center" style="padding:0px 0px;">\r\n\t\t\t<select onchange="'+this.pGetRef()+'.setMonth( this );" style="width:100%">\r\n',d=0,l=11;d<b.getMonth()&&f==b.getFullYear()&&(d=b.getMonth());for(l>c.getMonth()&&f==c.getFullYear()&&(l=c.getMonth());d<l+1;d++)e+='\t\t\t\t<option value="'+d+'"'+(d==i?' selected="selected"':"")+">"+months[d]+"</option>\r\n";e+='\t\t\t</select>\r\n\t\t</td>\r\n\t\t<td colspan="3" align="center" style="padding:0px 0px;">\r\n\t\t\t<select onchange="'+
this.pGetRef()+'.setYear( this );" style="width:100%">\r\n';d=a.getFullYear()-75;l=a.getFullYear()+75;d<b.getFullYear()&&(d=b.getFullYear());for(l>c.getFullYear()&&(l=c.getFullYear());d<l+1;d++)e+='\t\t\t\t<option value="'+d+'"'+(d==f?' selected="selected"':"")+">"+d+"</option>\r\n";e+='\t\t\t</select>\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr id="trButtons" style="font-size:90%;">\r\n\t\t<td style="padding:0px 0px;"><button type="button"'+h+' onclick="'+this.pGetRef()+'.priorMonth( this, event );" style="width:100%; margin:0px;">&lt;</button></td>\t\t<td colspan="6" align="center">'+
a.formatString("MMMM yyyy")+'</td>\r\n\t\t<td style="padding:0px 0px;"><button type="button"'+j+' onclick="'+this.pGetRef()+'.nextMonth( this, event );" style="width:100%; margin:0px;">&gt;</button></td>\r\n\t</tr>\r\n\t<tr height="20" style="font-size:90%;">\r\n\t\t<td><img src="img/default/pixTrans.gif" height="1" class="calWeekNo" /></td>\r\n';for(d=Date.formatInfo.firstDay;7>d;d++)e+='\t\t<td class="calDayHeader"><img src="img/default/pixTrans.gif" height="1" class="calDayHeader" /><br/>'+days[d].substr(0,
2)+"</td>\r\n";for(d=0;d<Date.formatInfo.firstDay;d++)e+='\t\t<td class="calDayHeader"><img src="img/default/pixTrans.gif" height="1" class="calDayHeader" /><br/>'+days[d].substr(0,2)+"</td>\r\n";e+='\t</tr>\r\n\t<tr style="font-size:90%;">\r\n\t\t<td class="calWeekNo" style="cursor:default;">'+g.priorDay(m).weekNo()+"</td>\r\n";for(d=m;0<d;d--)h=g.priorDay(d),e+="\t\t<td"+this.td(h)+">"+h.formatString("%d")+"</td>\r\n";for(;g<k;)e+="\t\t<td"+this.td(g)+">"+g.formatString("%d")+"</td>\r\n",g=g.nextDay(),
m=this.dayNo(g),g<k&&0==m&&(e+='\t</tr>\r\n\t<tr style="font-size:90%;">\r\n\t\t<td class="calWeekNo" style="cursor:default;">'+g.weekNo()+"</td>");if(m)for(d=0;20>d&&7>m;g=g.nextDay(),d++)e+="<td"+this.td(g)+">"+g.formatString("%d")+"</td>",m++;this.div.innerHTML=e+"\t</tr>\r\n</table>"};TCalendar.instances=[];TCalendar.dispose=function(){for(var a=0;a<TCalendar.instances.length;a++)TCalendar.instances[a].dispose(),TCalendar.instances[a]=null;TCalendar.instances=[]};addEvent(window,"unload","TCalendar.dispose();");
function isDate(a){if(null==a)return!0;if("function"==typeof a.age)return a;if(0==(new String(a)).length)return!0;var b=new Date,c=(new String(a)).split(Date.formatInfo.dateSeparator.trim());if(2>c.length||3<c.length)return!1;for(a=0;a<c.length;a++){for(;c[a].startsWith("0");)c[a]=c[a].substr(1);""==c[a]&&(c[a]="0")}var a=0<c.length?parseInt(c[0]):null,f=1<c.length?parseInt(c[1]):null,b=2<c.length?parseInt(c[2]):b.getYear();if(isNaN(a)||null==a||isNaN(f)||null==f||isNaN(b)||a!=Number(c[0])||f!=Number(c[1])||
2<c.length&&b!=Number(c[2]))return!1;c=Date.formatInfo.shortDatePattern;c.search("y")<c.search("m")&&c.search("m")<c.search("d")?(c=b,b=a,a=c):c.search("m")<c.search("d")&&(c=f,f=a,a=c);if(1>a||1>f||12<f)return!1;50>b?b+=2E3:100>b&&(b+=1900);if(1753>b||9999<b)return!1;switch(f){case 2:if(0==b%4&&(0!=b%100||0==b%1E3)){if(29<a)return!1}else if(28<a)return!1;break;case 1:case 3:case 5:case 7:case 8:case 10:case 12:if(31<a)return!1;break;case 4:case 6:case 9:case 11:if(30<a)return!1;break;default:return!1}return new Date(b,
f-1,a,0,0,0)}
function isTime(a){if(null==a)return!0;if("function"==typeof a.age)return a;if(0==(new String(a)).length)return!0;try{var b=(new String(a)).split(RegExp("["+Date.formatInfo.timeSeparator+" ]","gi"));if(2>b.length||3<b.length)return!1;for(a=0;a<b.length;a++){for(;b[a].startsWith("0");)b[a]=b[a].substr(1);""==b[a]&&(b[a]="0")}var c=0<b.length?Number(b[0]):null,f=1<b.length?Number(b[1]):null,i=2<b.length?Number(b[2]):0,g=3<b.length?b[3]:null;if(isNaN(c)||null==c||isNaN(f)||null==f)return!1;if(isNaN(i))if(/(AM|PM)/.test(b[2]))g=
b[2].toUpperCase(),i=0;else return!1;"PM"==g&&12>c&&(c+=12);return 0>c||23<c||0>f||59<f||0>i||59<i?!1:new Date(1900,0,1,c,f,i)}catch(k){return!1}}
function isDateTime(a){if(null==a)return!0;if("function"==typeof a.age)return a;if(0==(new String(a)).length)return!0;var b=new Date,a=a.split(/\s+/gi);if(1<a.length){for(b=2;b<a.length;b++)a[1]+=" "+a[b];var b=isDate(a[0]),c=isTime(a[1]);if(!1!=b&&!1!=c)return b.setHours(c.getHours()),b.setMinutes(c.getMinutes()),b.setSeconds(c.getSeconds()),b;a=a.join(" ");c=isTime(a);return!1!=c?c:!1}return-1<a[0].indexOf(Date.formatInfo.dateSeparator)?isDate(a[0]):-1<a[0].indexOf(Date.formatInfo.timeSeparator)?
isTime(a[0]):!1}function getIllegalDateMessage(){var a="'"+Date.formatInfo.getDateDisplayPattern()+"'",b=getMessage(19);return b?b.text.replace("D-M-JJJJ",a):"De ingevoerde datum is niet correct. Er wordt een datum met het volgende formaat verwacht: "+a+"."};

