Title: Page 324 Steps 4, 5, and 6
Course: Intermediate Web Programming (25436)

<script type="text/javascript">
/* <![CDATA[ */

var dateObject = new Date();
var month = dateObject.getMonth();
var monthArray = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

function getTodayDate(){
var dateToday = monthArray[month] + " "
+ dateObject.getDate() + ", "
+ dateObject.getFullYear();
document.forms[0].reservationDate.value = dateToday;
} /* ]]> */
</script>

<!-- this replaces the body tag -->
<body onload = "getTodayDate()">