var pmaf_days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']
var pmaf_months = ['January','February','March','April','May','June','July','August','September','October','November','December'];

Date.prototype.stripTime=function(){
    this.setMilliseconds(0);
    this.setSeconds(0);
    this.setMinutes(0);
    this.setHours(0);
    return this;
}

Date.prototype.getDayName=function(){
    return pmaf_days[this.getDay()];
}

Date.prototype.getMonthName=function(){
    return pmaf_months[this.getMonth()];
}

Date.prototype.addDays=function(value){
	this.setDate(this.getDate() + (value*1));
	return this;
}

Date.prototype.copy=function(){
    return new Date(this.valueOf());
}

Date.newDate = function(year,month,day) {
   var date = new Date();
   date.setFullYear(year,month,day);
   return date.stripTime();
}