
  function GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", 
                         "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

  function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
    return MonthArray[intMonth] 	  	 
    }
  function getDateStr(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }
  function getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }

	


// Stop Spammers

var numberOfWords = 32;
var message = "What's Next? wishes to keep this message board as clean as possible.  Hard profanity is not allowed.  Besides... what would your mother think? ;) -----------!";
var isProfane = new makeArray(numberOfWords);
var word = new makeArray(numberOfWords);
 
function checkForSpam(usersInput) {
 
var temp = usersInput;
temp = temp.toLowerCase();
 
word[1] = "href";
word[2] = "http://";
word[3] = "<a";
word[4] = "viagra";
word[5] = "document.location";
word[6] = "porn";
word[7] = "fuck";
word[8] = "cunt";
word[9] = "cialis";
word[10] = "badword10";
word[11] = "badword11";
word[12] = "badword12";
word[13] = "badword13";
word[14] = "badword14";
word[15] = "badword15";
word[16] = "badword16";
word[17] = "badword17";
word[18] = "badword18";
word[19] = "badword19";
word[20] = "badword20";
word[21] = "badword21";
word[22] = "badword22";
word[23] = "badword23";
word[24] = "badword24";
word[25] = "badword25";
word[26] = "badword26";
word[27] = "badword27";
word[28] = "badword28";
word[29] = "badword29";
word[30] = "badword30";
word[31] = "badword31";
word[32] = "badword32";
 
for (var j = 1; j <= numberOfWords; j++) {
isProfane[j] = temp.indexOf(word[j]);
}
 

for (var j = 1; j <= numberOfWords; j++) {
   if (isProfane[j] != -1) {
      alert("Please refrain from using tags or words like \'"+word[j]+"\'.");
      //usersInput = message;
      j = numberOfWords + 1; 
	  }
 
   else {}
}
      return usersInput;
	  
}
 
function makeArray(n) {
   this.length = n
   for (var i = 1; i<=n; i++) {
       this[i] = new String();
   }
   return this;
}
//to use <textarea name="Comments" rows="5" cols="70" onBlur = "this.value = checkForSpam(this.value);"></textarea>
//************************** End Spammers Script - 
