<!-- Multi-Date Greeting III --> <!-- This whole script goes in the HEAD the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2008, Sandeep Gangadharan --> <!-- For more free scripts go to http://www.sivamdesign.com/scripts/ --> <!-- var month = new Array(); month[0]="January"; month[1]="February"; month[2]="March"; month[3]="April"; month[4]="May"; month[5]="June"; month[6]="July"; month[7]="August"; month[8]="September"; month[9]="October"; month[10]="November"; month[11]="December"; var theMonth1 = "October"; // the start month var theDate1 = new Array("31"); // the start date var theMonth2 = "November"; // the end month var theDate2 = new Array("01"); // the end date today = new Date(); date = today.getDate(); month = (month[today.getMonth()]); for (var i = 0; i <= 31; i++) { if ((month == theMonth1 && date >= theDate1[i]) || (month == theMonth2 && date <= theDate2[i])) { window.alert('This is an alert for a Special Day!'); } } // --> </script>