
// ---------- script properties ----------


var results_location = "results.htm";


// ---------- end of script properties ----------


function search_form() {
	if (document.jse_Form.d.value.length > 0) {
		document.cookie = "d=" + escape(document.jse_Form.d.value);
		window.location = results_location;
	}
}

function setDay() {
		var thetime = new Date();
		var nday = thetime.getDay();
		var ndate = thetime.getDate();
		var nmonth = thetime.getMonth();
		var nyear = thetime.getYear();
		
if(nday==0)
	nday="Sunday";
	if(nday==1)
		nday="Monday";
	if(nday==2)
		nday="Tuesday";
	if(nday==3)
		nday="Wednesday";
	if(nday==4)
		nday="Thursday";
	if(nday==5)
		nday="Friday";
	if(nday==6)
		nday="Saturday";

if(nmonth==0)
	nmonth="January";
	if(nmonth==1)
		nmonth="February";
	if(nmonth==2)
		nmonth="March";
	if(nmonth==3)
		nmonth="Aprial";
	if(nmonth==4)
		nmonth="May";
	if(nmonth==5)
		nmonth="June";
	if(nmonth==6)
		nmonth="July";
	if(nmonth==7)
		nmonth="August";
	if(nmonth==8)
		nmonth="September";
	if(nmonth==9)
		nmonth="October";
	if(nmonth==10)
		nmonth="November";
	if(nmonth==11)
		nmonth="December";

if(nyear<2000)
	nyear+=1900;
	if (ndate == 1)
		document.writeln(nday+", "+ndate+"st "+ nmonth+" "+nyear);
	else if (ndate == 2)
		document.writeln(nday+", "+ndate+"nd "+ nmonth+" "+nyear);
	else if (ndate == 3)
		document.writeln(nday+", "+ndate+"rd "+ nmonth+" "+nyear);
	else
		document.writeln(nday+", "+ndate+"th "+ nmonth+" "+nyear);
	}
