<!--
Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.abbrDayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.abbrMonthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Date.firstDayOfWeek=1;Date.format="mm/dd/yyyy";Date.fullYearStart="20"; (function(){function b(a,g){Date.prototype[a]||(Date.prototype[a]=g)}b("isLeapYear",function(){var a=this.getFullYear();return a%4==0&&a%100!=0||a%400==0});b("isWeekend",function(){return this.getDay()==0||this.getDay()==6});b("isWeekDay",function(){return!this.isWeekend()});b("getDaysInMonth",function(){return[31,this.isLeapYear()?29:28,31,30,31,30,31,31,30,31,30,31][this.getMonth()]});b("getDayName",function(a){return a?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]});b("getMonthName", function(a){return a?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});b("getDayOfYear",function(){var a=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-a.getTime())/864E5)});b("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)});b("setDayOfYear",function(a){this.setMonth(0);this.setDate(a);return this});b("addYears",function(a){this.setFullYear(this.getFullYear()+a);return this});b("addMonths",function(a){var g=this.getDate();this.setMonth(this.getMonth()+ a);g>this.getDate()&&this.addDays(-this.getDate());return this});b("addDays",function(a){this.setTime(this.getTime()+a*864E5);return this});b("addHours",function(a){this.setHours(this.getHours()+a);return this});b("addMinutes",function(a){this.setMinutes(this.getMinutes()+a);return this});b("addSeconds",function(a){this.setSeconds(this.getSeconds()+a);return this});b("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});b("asString",function(a){return(a|| Date.format).split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("mmmm").join(this.getMonthName(false)).split("mmm").join(this.getMonthName(true)).split("mm").join(h(this.getMonth()+1)).split("dd").join(h(this.getDate())).split("hh").join(h(this.getHours())).split("min").join(h(this.getMinutes())).split("ss").join(h(this.getSeconds()))});Date.fromString=function(a,g){var d=g||Date.format,e=new Date("01/01/1977"),i=0,f=d.indexOf("mmmm");if(f>-1){for(var c= 0;c<Date.monthNames.length;c++){var j=a.substr(f,Date.monthNames[c].length);if(Date.monthNames[c]==j){i=Date.monthNames[c].length-4;break}}e.setMonth(c)}else{f=d.indexOf("mmm");if(f>-1){j=a.substr(f,3);for(c=0;c<Date.abbrMonthNames.length;c++)if(Date.abbrMonthNames[c]==j)break;e.setMonth(c)}else e.setMonth(Number(a.substr(d.indexOf("mm"),2))-1)}c=d.indexOf("yyyy");if(c>-1){if(f<c)c+=i;e.setFullYear(Number(a.substr(c,4)))}else e.setFullYear(Number(Date.fullYearStart+a.substr(d.indexOf("yy"),2)));d= d.indexOf("dd");if(f<d)d+=i;e.setDate(Number(a.substr(d,2)));if(isNaN(e.getTime()))return false;return e};var h=function(a){a="0"+a;return a.substring(a.length-2)}})();
//-->
