function longdate() { 
	// Create Date Object and get month, day of week, and day of month properties 
	var ddate = new Date(); 
	var dmonth = ddate.getMonth() + 1; 
	var dday = ddate.getDay() + 1; 
	var dnum = ddate.getDate(); 
	// 
	// Get year property and check for Y2K compliance // 
	if (ddate.getYear() != 0 && ddate.getYear() < 2000) 
		{ dyear = ddate.getYear() + 1900 } 
		else 
		{ dyear = ddate.getYear() } 
		// 
		// array with month names // 
		nmonth = new Array(); 
		nmonth[1] = "JANUARY "; 
		nmonth[2] = "FEBRUARY "; 
		nmonth[3] = "MARCH "; 
		nmonth[4] = "APRIL "; 
		nmonth[5] = "MAY "; 
		nmonth[6] = "JUNE "; 
		nmonth[7] = "JULY "; 
		nmonth[8] = "AUGUST "; 
		nmonth[9] = "SEPTEMBER "; 
		nmonth[10] = "OCTOBER "; 
		nmonth[11] = "NOVEMBER "; 
		nmonth[12] = "DECEMBER "; 
		
		with (document) { 
			write("" + dnum + " " + nmonth[dmonth] + " " + dyear); 
			close(); 
		} return true; 
	} 
