					function CreateDateSelect(theForm,changeoverday1){
						//function to write the date select list using the changeoverday
						//get month
						var theDate = new Date(theForm.month.options[theForm.month.selectedIndex].value);
						var theYear = theDate.getFullYear();
						var theMonth = theDate.getMonth();
						
						//convert cod for js
						changeoverday1 = changeoverday1 - 1;
						
						//now loop through all dates in that month and write out those that are on 
						//either changeoverday
						var aDay = 1000*60*60*24;
						var monthStart = new Date(theYear,theMonth,"1");
						monthStart = monthStart.getTime()
						var monthEnd = new Date(theYear,theMonth,days_in_month(theYear, theMonth));
						monthEnd = monthEnd.getTime()
						
						theForm.startdate.options.length = 0;
						
						for (var d = monthStart; d <= monthEnd; d+=aDay) {
							theDate = new Date(d);
							if (theDate.getDay() == changeoverday1) {
								var newdate =  theDate.getDate() + ' ' + getMonthName(theDate.getMonth()) + ' ' + theDate.getFullYear();
								theForm.startdate.options[theForm.startdate.options.length] = new Option(newdate, newdate);
							}
						}

					}
					
					function days_in_month(year, month) {
						return 32 - new Date(year, month, 32).getDate();
					}
					
					function getMonthName(month) {
						// create array to hold name of each month
						var ar = new Array(12)
						ar[0] = "January"
						ar[1] = "February"
						ar[2] = "March"
						ar[3] = "April"
						ar[4] = "May"
						ar[5] = "June"
						ar[6] = "July"
						ar[7] = "August"
						ar[8] = "September"
						ar[9] = "October"
						ar[10] = "November"
						ar[11] = "December"

						// return name of specified month (parameter)
						return ar[month]
					}