// JavaScript Document

//this document will build functions to do with dates

//----- functions to be used in a date type object ------

Date.prototype.getMonthName = function()
{
	var m = ['January','February','March','April','May','June','July','August','September','October','November','December'];
	return m[this.getMonth()];
}


//----- functions to be called normally ------
function getMonthName(currMonth)
{
	var m = ['January','February','March','April','May','June','July','August','September','October','November','December'];
	return m[currMonth - 1];
}