function ValidateRegister(theForm)
{
  if (theForm.username.value == "")
  {
    alert("Choose a username please.");
	theForm.username.focus();
    return (false);
  }
  if (theForm.password.value == "")
  {
    alert("Choose a password please.");
	theForm.password.focus();
    return (false);
  }
  if (theForm.password.value != theForm.confirmpass.value)
  {
    alert("Re-enter your choosen password please.");
	theForm.confirmpass.focus();
    return (false);
  }
  if (theForm.name.value == "")
  {
    alert("Fill in your name please.");
	theForm.name.focus();
    return (false);
  }
  if (theForm.address.value == "")
  {
    alert("Fill in your address please.");
	theForm.address.focus();
    return (false);
  }
  if (theForm.city.value == "")
  {
    alert("Fill in your city / town / area please.");
	theForm.city.focus();
    return (false);
  }
  if (theForm.region.value == "")
  {
    alert("Fill in your state / province / region please.");
	theForm.region.focus();
    return (false);
  }
  if (theForm.country.value == "")
  {
    alert("Fill in your country please.");
	theForm.country.focus();
    return (false);
  }
  if (theForm.phone.value == "")
  {
    alert("Fill in your phone number please.");
	theForm.phone.focus();
    return (false);
  }
  if (theForm.phone.value == "+ (0) ")
  {
    alert("Fill in your phone number please.");
	theForm.phone.focus();
    return (false);
  }  
  if (theForm.reg_email.value == "")
  {
    alert("Fill in your Email address please.");
	theForm.reg_email.focus();
    return (false);
  }
  if (theForm.reg_email.value != theForm.confirmemail.value)
  {
    alert("Re-enter your Email address please.");
	theForm.confirmemail.focus();
    return (false);
  }
  if (theForm.birth_day.value == "")
  {
    alert("Fill in your day of birth please.");
	theForm.birth_day.focus();
    return (false);
  }
  if (theForm.birth_month.value == "")
  {
    alert("Fill in your month of birth please.");
	theForm.birth_month.focus();
    return (false);
  }
  if (theForm.birth_year.value == "Year")
  {
    alert("Fill in your year of birth please.");
	theForm.birth_year.focus();
    return (false);
  }
  if (theForm.code.value == "")
  {
    alert("Enter the code as shown.");
	theForm.code.focus();
  return (false);
  }
return (true);
}