
function notEmpty()
{
var contact_title = document.getElementById('contact_title');
if (contact_title.value == "") { //This checks to make sure the field is not empty
   alert("Your title is missing"); //Informs user of empty field
   contact_title.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
var contact_forename = document.getElementById('contact_forename');
if (contact_forename.value == "") { //This checks to make sure the field is not empty
   alert("Your forename is missing"); //Informs user of empty field
   contact_forename.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
var contact_surname = document.getElementById('contact_surname');
if (contact_surname.value == "") { //This checks to make sure the field is not empty
   alert("Your surname is missing"); //Informs user of empty field
   contact_surname.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
var contact_email = document.getElementById('contact_email');
if (contact_email.value == "") { //This checks to make sure the field is not empty
   alert("Your email address is missing"); //Informs user of empty field
   contact_email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
var address_line1 = document.getElementById('address_line1');
if (address_line1.value == "") { //This checks to make sure the field is not empty
   alert("Your address line 1 is missing"); //Informs user of empty field
   address_line1.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
var address_town = document.getElementById('address_town');
if (address_town.value == "") { //This checks to make sure the field is not empty
   alert("Your town or city is missing"); //Informs user of empty field
   address_town.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }  
var address_county = document.getElementById('address_county');
if (address_county.value == "") { //This checks to make sure the field is not empty
   alert("Your county is missing"); //Informs user of empty field
   address_county.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   } 
var address_postcode = document.getElementById('address_postcode');
if (address_postcode.value == "") { //This checks to make sure the field is not empty
   alert("Your postcode is missing"); //Informs user of empty field
   address_postcode.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }  
var contact_telephone = document.getElementById('contact_telephone');
if (contact_telephone.value == "") { //This checks to make sure the field is not empty
   alert("Your telephone number is missing"); //Informs user of empty field
   contact_telephone.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }    
var contact_details = document.getElementById('contact_details');
if (contact_details.value == "") { //This checks to make sure the field is not empty
   alert("Please provide details of your enquiry"); //Informs user of empty field
   contact_telephone.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }  
}
