function checkMe(y){
 if((isTextFieldEmpty(y.name))==true){
  alert("Please give the name you would like to make the appointment in");
  return false;
 }
 if((isTextFieldEmpty(y.telephone))==true){
  alert("Please give me a contact telephone number");
  return false;
 }
 if((validPhoneNumber(y.telephone))==false&&(isTextFieldEmpty(y.telephone))==false){
  alert("'"+y.telephone.value+"' is not a valid telephone number.\nPlease try again.");
  return false;
 }
 if((checkRadio(y.cancall))=="ERROR"){
  alert("Please say if I can call you on this number");
  y.cancall[0].focus();
  return false;
 }
 if((checkRadio(y.sms))=="ERROR"){
  alert("Please say if I can send you a text message on this number");
  y.sms[0].focus();
  return false;
 }
 if((isTextFieldEmpty(y.email))==true){
  alert("Please include a contact email address");
  return false;
 }
 if((validEmail(y.email))==false){
  alert("'"+y.email.value+"' is not a valid email address.\nPlease try again.");
  return false;
 }
 if((isTextFieldEmpty(y.date2))==true&&(isTextFieldEmpty(y.date1))==true){
  alert("Please specify at least one appointment date");
  return false;
 }
 if((isTextFieldEmpty(y.time2))==true&&(isTextFieldEmpty(y.time1))==true){
  alert("Please specify at least one appointment time");
  return false;
 }
 if((checkRadio(y.duration))=="ERROR"){
  alert("Please specify the duration of the appointment");
  y.duration[0].focus();
  return false;
 }
 else if((checkRadio(y.duration))=="other"&&(isTextFieldEmpty(y.duration2))==true){
  alert("Please specify the duration of the appointment");
  y.duration2.focus();
  return false;
 }
 if((checkRadio(y.service))=="ERROR"){
  alert("Please specify the type of service");
  y.service[0].focus();
  return false;
 }
 if((checkRadio(y.service))=="outcall"&&(isTextFieldEmpty(y.outcalllocation))==true){
  alert("Please specify the outcall location");
  y.outcalllocation.focus();
  return false;
 }
 return true;
}
