function validate()
{

  if (registration.name.value==0)
  {
    alert('Please fill in your name.');
    return false;
  }
  if (registration.guest[0].checked==1)
  {
	if (registration.guestName.value==0)
	{
	   alert('Please do not forget to fill in the guest name.');
	   return false;
	}
  }
  if (registration.address.value==0)
  {
    alert('Please fill in your address.');
    return false;
  }
  if (registration.email.value.search("@") == -1 || registration.email.value.search("[.*]") == -1)
  {
    alert('Please fill in a valid email.');
    return false;
  }
  if (registration.contact.value==0)
  {
    alert('Please fill in a valid contact number.');
    return false;
  }
  if (registration.ageGroup.value==0)
  {
    alert('Please select the age group you are in.');
    return false;
  }
  if (registration.income.value==0)
  {
    alert('Please select the range of income.');
    return false;
  }
  if (registration.checkbox12.checked==1)
  {
	if (registration.othersSpec.value==0)
	{
	   alert('Please specify the source where you come to know of The House of Lange');
	   return false;
	}
  }
  if (registration.slot1.value==0 || registration.slot2.value==0 || registration.slot3.value==0 || registration.time1.value==0 || registration.time2.value==0 || registration.time3.value==0)
  {
	  alert('You did not enter at least a value for each of the time slots.');
	  return false;
  }
  return true;
}