Date.prototype.getMonthName=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"][this.getMonth()];};Date.prototype.getShortMonthName=function(){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][this.getMonth()];};Date.prototype.getDateString=function(){return this.getDate()+"-"+this.getShortMonthName()+"-"+this.getFullYear();};Date.prototype.getDayOfWeek=function(){return["S","M","T","W","T","F","S"][this.getDay()];};Date.prototype.dateAdd=function(e,f){var b=1;var d=b*1000;var a=d*60;var j=a*60;var c=j*24;var h=c*365;var i;var g=this.valueOf()-(this.getTimezoneOffset()*60000);switch(e){case"ms":i=new Date(g+b*f);break;case"s":i=new Date(g+d*f);break;case"mi":i=new Date(g+a*f);break;case"h":i=new Date(g+j*f);break;case"d":i=new Date(g+c*f);break;case"y":i=new Date(g+h*f);break;}return i;};Date.prototype.getNoFrills=function(){var a=this.dateAdd("mi",0);return(a);};function DateDiff(b,a){return Math.round((a.getNoFrills()-b.getNoFrills())/86400000);}