function getDate()
{


// Create a varible with the current data info
var right_now=new Date();


var days = new Array()
days[0] = "Sunday"
days[1] = "Monday"
days[2] = "Tuesday"
days[3] = "Wednesday"
days[4] = "Thursday"
days[5] = "Friday"
days[6] = "Saturday"
days[7] = "Sunday"


for (a=0; a<days.length;a++)
{
	if ( (right_now.getDay()) == a){
	document.write(days[a])
	}
}

document.write('<br />');

var th = "th";
var today = right_now.getDate();

document.write(today);


if( (today == 1) || (today == 21) || (today == 31) )
{
	th = "st";
}

if( (today == 2) || (today == 22) )
{
	th = "nd";
}

if( (today == 3) || (today == 23) )
{
	th = "rd";
}

document.write(th);

document.write('&nbsp;');

var months = new Array()
months[0] = "January"
months[1] = "February"
months[2] = "March"
months[3] = "April"
months[4] = "May"
months[5] = "June"
months[6] = "July"
months[7] = "August"
months[8] = "September"
months[9] = "October"
months[10] = "November"
months[11] = "December"

for (i=0;i<months.length;i++)
{
	if ( (right_now.getMonth()) == i){
	document.write(months[i])
	}
}


document.write('&nbsp;');

// Year can come as the current year
// or the number of years since 1900
// To account for this we check the value 

var right_year=right_now.getYear();
if (right_year < 2000) 
right_year = right_year + 1900; 
document.write( right_year );
document.write("&nbsp;");

}
