<!--
function ValContact(theForm)
{
if (theForm.name.value=="")
{
	alert("Please enter your name");
	theForm.name.focus();
	theForm.name.style.backgroundColor="#EEC6D9";
	return (false);
}
if (theForm.email.value =="")
{
	alert("Please enter your email address");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#EEC6D9";
	return false;
}
if (theForm.email.value.indexOf('@', 0) == -1) 
{
	alert("Not a valid email address");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#EEC6D9";
	return (false);
}
if (theForm.email.value.indexOf('.', 0) == -1) 
{
	alert("Not a valid email address");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#EEC6D9";
	return (false);
}
if (theForm.telephone.value =="")
{
	alert("Please enter your telephone number");
	theForm.telephone.focus();
	theForm.telephone.style.backgroundColor="#EEC6D9";
	return false;
}
if (theForm.address.value =="")
{
	alert("Please enter your address");
	theForm.address.focus();
	theForm.address.style.backgroundColor="#EEC6D9";
	return false;
}
//if (theForm.choice1.value =="")
//{
//	alert("Please indicate your first choice of Apartment");
//	theForm.choice1.focus();
//	theForm.choice1.style.backgroundColor="#EEC6D9";
//	return false;
//}
//if (theForm.choice2.value =="")
//{
//	alert("Please indicate your second choice of Apartment");
//	theForm.choice2.focus();
//	theForm.choice2.style.backgroundColor="#EEC6D9";
//	return false;
//}
if ((theForm.choice1.value == theForm.choice2.value))
{
	alert("You cannot select the same Apartment more than once");
	theForm.choice2.focus();
	theForm.choice2.style.backgroundColor="#EEC6D9";
	return false;
}
if ((theForm.choice1.value == theForm.choice3.value))
{
	alert("You cannot select the same Apartment more than once");
	theForm.choice3.focus();
	theForm.choice3.style.backgroundColor="#EEC6D9";
	return false;
}
if ((theForm.choice2.value == theForm.choice3.value))
{
	alert("You cannot select the same Apartment more than once");
	theForm.choice3.focus();
	theForm.choice3.style.backgroundColor="#EEC6D9";
	return false;
}
//if (theForm.arrivalday.value =="")
//{
//	alert("Please enter a complete arrival date");
//	theForm.arrivalday.focus();
//	theForm.arrivalday.style.backgroundColor="#EEC6D9";
//	return false;
//}
if (theForm.arrivalmonth.value =="")
{
	alert("Please enter a complete arrival date");
	theForm.arrivalmonth.focus();
	theForm.arrivalmonth.style.backgroundColor="#EEC6D9";
	return false;
}
if (theForm.arrivalyear.value =="")
{
	alert("Please enter a complete arrival date");
	theForm.arrivalyear.focus();
	theForm.arrivalyear.style.backgroundColor="#EEC6D9";
	return false;
}
//if (theForm.departureday.value =="")
//{
//	alert("Please enter a complete departure date");
//	theForm.departureday.focus();
//	theForm.departureday.style.backgroundColor="#EEC6D9";
//	return false;
//}
if (theForm.departuremonth.value =="")
{
	alert("Please enter a complete departure date");
	theForm.departuremonth.focus();
	theForm.departuremonth.style.backgroundColor="#EEC6D9";
	return false;
}
if (theForm.departureyear.value =="")
{
	alert("Please enter a complete departure date");
	theForm.departureyear.focus();
	theForm.departureyear.style.backgroundColor="#EEC6D9";
	return false;
}
if (theForm.group.value =="")
{
	alert("Please enter details of your group");
	theForm.group.focus();
	theForm.group.style.backgroundColor="#EEC6D9";
	return false;
}
if (theForm.contact.value =="")
{
	alert("Please indicate how you would like to be contacted");
	theForm.contact.focus();
	theForm.contact.style.backgroundColor="#EEC6D9";
	return false;
}
if ((theForm.contact.value =="Telephone") && (theForm.telephone.value ==""))
{
	alert("Contact by telephone selected but no daytime number entered");
	theForm.telephone.focus();
	theForm.telephone.style.backgroundColor="#EEC6D9";
	return false;
}
if ((theForm.contact.value =="Email") && (theForm.email.value ==""))
{
	alert("Contact by email selected but no email address entered");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#EEC6D9";
	return false;
}
if ((theForm.contact.value =="Post") && (theForm.address.value ==""))
{
	alert("Contact by post selected but no address entered");
	theForm.address.focus();
	theForm.address.style.backgroundColor="#EEC6D9";
	return false;
}
return (true);
}
//-->
