//////////////////////////////////////////////////////// create new instance of Date object
var EnterDate = new Date()

//////////////////////////////////////////////////////// now use the instance of the Date object to get values

var EDay = EnterDate.getDate()
var EMonth = EnterDate.getMonth() + 1
var EYear = EnterDate.getYear()
var EHour = EnterDate.getHours()
var EMin = EnterDate.getMinutes()

//////////////////////////////////////////////////////// write date and time values to page

document.write ("<font class='a3'>&nbsp;Date: " + EDay + "/" + EMonth + "/" + EYear + "</font>")
document.write ("<font class='a3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Time: </font>")

//////////////////////////////////////////////////////// if hours less than or equal to 9 write a zero to the front of hours
if (EHour <= 9)
	document.write ("<font class='a3'>0" + EHour + ":")
else
	document.write ("<font class='a3'>" + EHour + ":")

///////////////////////////////////////////////////// if minutes less than or equal to 9 write a zero to the front of minutes
if (EMin <= 9)
	document.write ("<font class='a3'>0" + EMin)
else
	document.write (EMin)

//////////////////////////////////////////////////////// if hours less than or equal to 12 write am else write pm
if (EHour <= 12)
	document.write ("<font class='a3'>am&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Approval Number: 3929&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>")
else
	document.write ("<font class='a3'>pm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Approval Number: 3929&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>")
