function check_forbidden(body,title,words) { var result = true; var s = ""; var cntr = 0; var not_allowed = ""; var words_list = words.split(" "); for (var i=0; i 1) { s = "s"; } if (!result) { alert("You are using a not allowed word"+s+" ("+not_allowed+" ). Please correct your post or title and try again"); } return result; }