
function getDayOfWeek() {
	switch(this.getDay().toString()) {
		case "0" :
			return "Sunday";
			break;
		case "1" :
			return "Monday";
			break;
		case "2" :
			return "Tuesday";
			break;
		case "3" :
			return "Wednesday";
			break;
		case "4" :
			return "Thursday";
			break;
		case "5" :
			return "Friday";
			break;
		case "6" :
			return "Saturday";
			break;
		default :
			return "none";	
	}
}
Date.prototype.getDayOfWeek = getDayOfWeek;

function getMonthName() {
	switch(this.getMonth().toString()) {
		case "0" :
			return "January";
			break;
		case "1" :
			return "February";
			break;
		case "2" :
			return "March";
			break;
		case "3" :
			return "April";
			break;
		case "4" :
			return "May";
			break;
		case "5" :
			return "June";
			break;
		case "6" :
			return "July";
			break;
		case "7" :
			return "August";
			break;
		case "8" :
			return "September";
			break;
		case "9" :
			return "October";
			break;
		case "10" :
			return "November";
			break;
		case "11" :
			return "December";
			break;
		default :
			return "none";	
	}
}
Date.prototype.getMonthName = getMonthName;

function getCorrectYear() {
	if (this.getYear() < 1900) {
		return (this.getYear() + 1900);
	} else {
		return this.getYear();	
	}
}
Date.prototype.getCorrectYear = getCorrectYear;

function getCorrectMonth() {
 if (this.getMonth() < 10) {
 	return ("" + "0" + this.getMonth());
 } else {
 	return (this.getMonth());
 }
}
Date.prototype.getCorrectMonth = getCorrectMonth;

function getCorrectDay() {
 if (this.getDate() < 10) {
 	return ("" + "0" + (this.getDate()));
 } else {
 	return (this.getDate());
 }
}
Date.prototype.getCorrectDay = getCorrectDay;

function addDays(n) {
	this.setTime(this.getTime() + (60 * 60 * 24 * 1000 * n));
}
Date.prototype.addDays = addDays;



/*
Method Summary

getDate                 Returns the day of the month for the specified date.
getDay                   Returns the day of the week for the specified date.
getHours                 Returns the hour in the specified date.
getMinutes               Returns the minutes in the specified date.
getMonth                 Returns the month in the specified date.
getSeconds               Returns the seconds in the specified date.
getTime                  Returns the numeric value corresponding to the time for the specified date.
getTimezoneOffset        Returns the time-zone offset in minutes for the current locale.
getYear                  Returns the year in the specified date.
parse                    Returns the number of milliseconds in a date string since January 1, 1970, 00:00:00, local time.
setDate                  Sets the day of the month for a specified date.
setHours                 Sets the hours for a specified date.
setMinutes               Sets the minutes for a specified date.
setMonth                 Sets the month for a specified date.
setSeconds               Sets the seconds for a specified date.
setTime                  Sets the value of a Date object.
setYear                  Sets the year for a specified date.
toGMTString              Converts a date to a string, using the Internet GMT conventions.
toLocaleString           Converts a date to a string, using the current locale's conventions.
UTC                      Returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, Universal Coordinated Time (GMT).
*/