// JavaScript Document

// time and period display
var time=new Date()
var hours=time.getHours()
var min=time.getMinutes()


rtime= (hours*100)+min //should return HHMM
if (rtime<800){
	document.write('Welcome to the Dearne High')
}
else if (rtime>=800&&rtime<830){
	document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=830&&rtime<845){
		document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=845&&rtime<935){
		document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=935&&rtime<1025){
		document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=1025&&rtime<1040){
		document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=1040&&rtime<1130){
		document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=1130&&rtime<1220){
		document.write('Good morning,welcome to the Dearne High')
}
else if (rtime>=1220&&rtime<1320){
	document.write('Good Afternoon,welcome to the Dearne High')
}
else if (rtime>=1320&&rtime<1415){
	document.write('Good Afternoon,welcome to the Dearne High')
}
else if (rtime>=1415&&rtime<1500){
	document.write('Good Afternoon,welcome to the Dearne High')
}
else if (rtime>=1500&&rtime<1600){
	document.write('Good Evening,welcome to the Dearne High')
}
else if (rtime>=1600&&rtime<1800){
	document.write('Good Evening,welcome to the Dearne High')
}
else if (rtime>=1800&&rtime<2400){
	document.write('Good Evening,welcome to the Dearne High')
}

else{
document.write('bad timing')
}