<!--

function validateForm(form)
{
  if (form.name.value == "")
  {
  alert("A Name is required.");
  form.name.focus(); //This focuses the cursor on the empty field
  return false; //This prevents the form from being submitted
  }

  if (form.country.value == "")
  {
  alert("A name of a Country is required.");
  form.country.focus(); //This focuses the cursor on the empty field
  return false; //This prevents the form from being submitted
  }

  if (form.topic.value == "")
  {
  alert("A topic is required.");
  form.topic.focus(); //This focuses the cursor on the empty field
  return false; //This prevents the form from being submitted
  }

  if (form.categoryID.selectedIndex == "0")
  {
  alert("Please select a relevant category for your topic!");
  form.categoryID.focus(); //This focuses the cursor on the empty field
  return false; //This prevents the form from being submitted
  }

  if (form.comments.value == "")
  {
  alert("You have not said anything!");
  form.comments.focus(); //This focuses the cursor on the empty field
  return false; //This prevents the form from being submitted
  }
}

function check_name()
{
var users_name=new Array();
users_name[0]="site administrator"
users_name[1]="god"
users_name[2]="allah"
users_name[3]="administrator"
users_name[4]="benidict xv"
users_name[5]="john paul II"
users_name[6]="pope"
users_name[7]="jesus"
users_name[8]="admin"

for(t=0;t<9;t++)
{
  if(your_say.name.value.toLowerCase().indexOf(users_name[t])!=-1)
  {
    alert("Please use a different name!");
    your_say.name.select();
    return false; //This prevents the form from being submitted
  }
}
}

function search()
{
var foul_words=new Array();
foul_words[0]=" crap "
foul_words[1]=" fuck "
foul_words[2]=" liar "
foul_words[3]=" sick s.o.b "
foul_words[4]=" fuck "
foul_words[5]="knobhead"
foul_words[6]="shit"
foul_words[7]="bollocks"
foul_words[8]="idiot"
foul_words[9]="masterbate"
foul_words[10]="massterbate"
foul_words[11]=" cock "
foul_words[12]=" piss"
foul_words[13]="clit "
foul_words[14]="cunt"
foul_words[15]="massderbate"
foul_words[16]="suck"
foul_words[17]=" arse "
foul_words[18]="f u c k"
foul_words[19]="p i s s"
foul_words[20]="s h i t"
foul_words[21]="k n o b"
foul_words[22]="s u c k"
foul_words[23]="wanker"
foul_words[24]="w a n k e r"
foul_words[25]="fuck"
foul_words[26]="faggot"
foul_words[27]="penis"
foul_words[28]="p.enis"
foul_words[29]="pe.nis"
foul_words[30]="pen.is"
foul_words[31]="peni.s"
foul_words[32]="k.nob"
foul_words[33]="k.nob"
foul_words[34]="kn.ob"
foul_words[35]="kno.b"
foul_words[36]="s.hit"
foul_words[37]="s.h.i.t"
foul_words[38]="sh.it"
foul_words[39]="shi.t"
foul_words[40]="c.o.c.k"
foul_words[41]="c.ock"
foul_words[42]="co.ck"
foul_words[43]="masturbate"
foul_words[44]=" slut"
foul_words[45]="crap"
foul_words[46]=" sux "
foul_words[47]=" suk "
foul_words[48]=" fuker "
foul_words[49]=" f c king "
foul_words[50]=" mother fuker "
foul_words[51]=" sh it "
foul_words[52]="  s   u c k "
foul_words[53]=" s u  cker "
foul_words[54]=" dick "
foul_words[55]=" d i ck "
foul_words[56]=" d i c k "
foul_words[57]=" f !u ck "

for(x=0;x<58;x++)
{
  if(your_say.comments.value.toLowerCase().indexOf(foul_words[x])!=-1)
  {
    alert(foul_words[x]+" is a foul or abusive word, please be more selective in your wording.");
    your_say.comments.select();
    return false; //This prevents the form from being submitted
  }
}
}


//-->
