                var monthOptionList = document.forms['cruiseForm'].Month.options;
                var months = new Array();
                months[0] = "January";
                months[1] = "February";
                months[2] = "March";
                months[3] = "April";
                months[4] = "May";
                months[5] = "June";
                months[6] = "July";
                months[7] = "August";
                months[8] = "September";
                months[9] = "October";
                months[10] = "November";
                months[11] = "December";
                var numOfMonths = 18;

                function populateMonths() {
                var date = new Date();
                var month = date.getMonth();
                var year = date.getFullYear();
                var i;

                //clear option list
                ClearOptions(monthOptionList);

                //Add first option "All Dates" to the option list
                AddToOptionList(monthOptionList ,"ALL", "All Dates");

                //add months to the option list
                for(i=0; i<numOfMonths; i++) {
                var value = (month+1)+"/1/"+year;
                var Text = months[month]+" "+year;
                AddToOptionList(monthOptionList, value, Text);
                month++;
                if( month > 11 ) {
                month = 0;
                year++;
                }
                }

                }

                function ClearOptions(OptionList) {
                // Always clear an option list from the last entry to the first
                for (x = OptionList.length; x >= 0; x = x - 1) {
                OptionList[x] = null;
                }
                }


                function AddToOptionList(OptionList, OptionValue, OptionText) {
                // Add option to the bottom of the list
                OptionList[OptionList.length] = new Option(OptionText, OptionValue);
                }

                populateMonths();
