// Date and Time Printing Function for Pages
function printDate () { 
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var dayofweek = currentTime.getDay()
var date = currentTime.getDate()
var year = currentTime.getFullYear()
if (dayofweek == 0) {
	dayofweek = "Sunday"
}
else if (dayofweek == 1) {
	dayofweek = "Monday"
}
else if (dayofweek == 2) {
	dayofweek = "Tuesday"
}
else if (dayofweek == 3) {
	dayofweek = "Wednesday"
}
else if (dayofweek == 4) {
	dayofweek = "Thursday"
}
else if (dayofweek == 5) {
	dayofweek = "Friday"
}
else if (dayofweek == 6) {
	dayofweek = "Saturday"
}
if (month == 1) {
	month = "January"
}
else if (month == 2) {
	month = "February"
}
else if (month == 3) {
	month = "March"
}
else if (month == 4) {
	month = "April"
}
else if (month == 5) {
	month = "May"
}
else if (month == 6) {
	month = "June"
}
else if (month == 7) {
	month = "July"
}
else if (month == 8) {
	month = "August"
}
else if (month == 9) {
	month = "September"
}
else if (month == 10) {
	month = "October"
}
else if (month == 11) {
	month = "November"
}
else if (month == 12) {
	month = "December"
}
document.write("Today is:" + " " + dayofweek + ", " + month + " " + date + ", " + year) 
}
