/***** This is the Code to get today's date ******/

Date.prototype.getFullYear = getFullYear;
Date.prototype.getActualMonth = getActualMonth;
Date.prototype.getActualDay = getActualDay;
Date.prototype.getCalendarDay = getCalendarDay;
Date.prototype.getCalendarMonth = getCalendarMonth;

	function getFullYear() {
		var n = this.getYear();
		if (n < 2000) { n += 1900;}
		return n;
	}

	function getActualMonth() {
		var n = this.getMonth();
		n += 1;
		return n;
	}

	function getActualDay() {
		var n = this.getDay();
		n += 1;
		return n;
	}

	function getCalendarDay() {
		var n = this.getDay();
		var dow = new Array(7);
		dow[0] = "Sunday";
		dow[1] = "Monday";
		dow[2] = "Tuesday";
		dow[3] = "Wednesday";
		dow[4] = "Thursday";
		dow[5] = "Friday";
		dow[6] = "Saturday";
		return dow[n];
	}

	function getCalendarMonth() {
		var n = this.getMonth();
		var moy = new Array(12);
		moy[0] = "January";
		moy[1] = "February";
		moy[2] = "March";
		moy[3] = "April";
		moy[4] = "May";
		moy[5] = "June";
		moy[6] = "July";
		moy[7] = "August";
		moy[8] = "September";
		moy[9] = "October";
		moy[10] = "November";
		moy[11] = "December";
		return moy[n];
	}

var today = new Date();
// today.getCalendarDay() + ", " + 
var fullDate = today.getCalendarMonth() + " " + today.getDate() + ", " + today.getFullYear();

/********** Date code ends ***********/

var servertimeOBJ;

// Now check that it is set
if (servertimeOBJ != null){
	var myscriptTime = servertimeOBJ;
}

// If server time not passed, use client's time
else{
	var myscriptTime = new Date();
}


function insertDate() {
	//document.write(fullDate);
	document.write(textdate);
}