function validateForm(form) {

if (form.custSurname.value == "") {
   document.getElementById("errText").innerHTML = "<font color='red'><b>Please enter your surname</b></font>"; 
   form.custSurname.focus( );
   return false;
   }
if (form.custInitials.value == "") {
   document.getElementById("errText").innerHTML = "<font color='red'><b>Please enter your initials</b></font>"; 
   form.custInitials.focus( );
   return false;
   }   
   
if (form.custContact.value == "") {
   document.getElementById("errText").innerHTML = "<font color='red'><b>Please enter a contact number</b></font>"; 
   form.custContact.focus( );
   return false;
   }  

if (form.custAddr1.value == "") {
   document.getElementById("errText").innerHTML = "<font color='red'><b>Please enter your address</b></font>"; 
   form.custAddr1.focus( );
   return false;
   } 
if (form.custTown.value == "") {
   document.getElementById("errText").innerHTML = "<font color='red'><b>Please enter your town/city</b></font>"; 
   form.custTown.focus( );
   return false;
   } 
if (form.custPostcode.value == "") {
   document.getElementById("errText").innerHTML = "<font color='red'><b>Please enter your postcode</b></font>"; 
   form.custPostcode.focus( );
   return false;
   }

}
