function validateForm()
{
	
var x=document.forms["form1"]["name"].value
if (x==null || x=="")
  {
  alert("Can you please tell us your name?");
  return false;
  }	
  
var x=document.forms["form1"]["email"].value
if (x==null || x=="")
  {
  alert("Please provide your email address.");
  return false;
  }	
  
var x=document.forms["form1"]["email"].value
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
  {
  alert("Please provide a valid e-mail address");
  return false;
  }
	
var x=document.forms["form1"]["number"].value
if (x==null || x=="")
  {
  alert("Please provide your telephone number, we will call you to confirm your appointment.");
  return false;
  }	
  
var x=document.forms["form1"]["service"].value
if (x==null || x=="")
  {
  alert("Please select service from drop down menu.");
  return false;
  }	
  
  
var x=document.forms["form1"]["day"].value
if (x==null || x=="")
  {
  alert("Please select the date of your appointment.");
  return false;
  }	
  
var x=document.forms["form1"]["month"].value
if (x==null || x=="")
  {
  alert("Please select the month of your appointment.");
  return false;
  }
  
var x=document.forms["form1"]["year"].value
if (x==null || x=="")
  {
  alert("Please select the year of your appointment.");
  return false;
  }
  
var x=document.forms["form1"]["time"].value
if (x==null || x=="")
  {
  alert("Please select the time of your appointment.");
  return false;
  }	

}
