<!--
var numberOfWords = 29;
var message = "Rejected Text";
var isProfane = new makeArray(numberOfWords);
var word = new makeArray(numberOfWords);
function checkForProfanity(usersInput) {
var temp = usersInput;
temp = temp.toLowerCase();

word[1] = "cheater";
word[2] = "explosion";
word[3] = "explode";
word[4] = "pussy";;
word[5] = "gun";
word[6] = "weapon";
word[7] = "sex";
word[8] = "kinky";
word[9] = "phonesex";
word[10] = "whore";
word[11] = "piss";
word[12] = "dickhead";
word[13] = "cock";
word[14] = "cunt";
word[15] = "bastard";
word[16] = "blowjob";
word[17] = "asshole";
word[18] = "lesbian";
word[19] = "queer";
word[20] = "fag";
word[21] = "rx";
word[22] = "pharmac";
word[23] = "bitch";
word[24] = "rifle";
word[25] = "handgun";
word[26] = "knife";
word[27] = "knives";
word[28] = "fuck";
word[29] = "shit"

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 \'"+word[j]+"\' on this page.");
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;
}
//-->
