function ValidateContact(theForm)
{
  if (theForm.name.value == "")
  {
    alert("Fill in your name please.");
	theForm.name.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Fill in your email address please.");
	theForm.email.focus();
    return (false);
  }
  if (theForm.email2.value != theForm.email.value)
  {
    alert("Re-enter your email address please.");
	theForm.email2.focus();
    return (false);
  }
  if (theForm.code.value == "")
  {
    alert("Enter the code as shown.");
	theForm.code.focus();
  return (false);
  }  
  return (true);
}
