function checkEntries(talktous)
{
	if (talktous.confirm_email.value != talktous.email.value)
	{
		alert('The confirmation email address does not match the original email address.');
		talktous.confirm_email.focus();
		talktous.confirm_email.select();
		return false;
	}
	if ((talktous.phone_number.value == "") && (talktous.area_code.value != ""))
	{
		alert('You have provided an area code without a telephone number.');
		talktous.confirm_email.focus();
		talktous.confirm_email.select();
		return false;
	}
	if ((talktous.phone_number.value != "") && (talktous.area_code.value == ""))
	{
		alert('You have provided a phone number without an area code.');
		talktous.confirm_email.focus();
		talktous.confirm_email.select();
		return false;
	}
   	if ((talktous.by_email.checked == true) && (talktous.email.value == ""))
	{
		alert('You have selected to be contacted by email, but have provided no email address.');
		talktous.email.focus();
		talktous.email.select();
		return false;
	}
	if ((talktous.by_phone.checked == true) && (talktous.phone_number.value == ""))
	{
		alert('You have selected to be contacted by phone, but have provided no phone number.');
		talktous.phone_number.focus();
		talktous.phone_number.select();
		return false;
	}
	if ((talktous.by_email.checked == true) && (talktous.firstname.value == ""))
	{
		alert('Having chosen to be contacted by email, your first and last name are required.');
		talktous.firstname.focus();
		talktous.firstname.select();
		return false;
	}
	if ((talktous.by_email.checked == true) && (talktous.lastname.value == ""))
	{
		alert('Having chosen to be contacted by email, your first and last name are required.');
		talktous.lastname.focus();
		talktous.lastname.select();
		return false;
	}
	if ((talktous.by_phone.checked == true) && (talktous.firstname.value == ""))
	{
		alert('Having chosen to be contacted by telephone, your first and last name are required.');
		talktous.firstname.focus();
		talktous.firstname.select();
		return false;
	}
	if ((talktous.by_phone.checked == true) && (talktous.lastname.value == ""))
	{
		alert('Having chosen to be contacted by telephone, your first and last name are required.');
		talktous.lastname.focus();
		talktous.lastname.select();
		return false;
	}
	return true;
}
