// JavaScript Document

function validateForm(registrationForm)
 {
  var strError = "";
  
  if (registrationForm.reg_title.value == "") strError += "Title\n";
  if (registrationForm.reg_fname.value == "") strError += "First Name\n";
  if (registrationForm.reg_lname.value == "") strError += "Last Name\n";
  if (registrationForm.reg_email.value == "") strError += "Email\n";
  if (registrationForm.reg_suburb.value == "") strError += "Suburb\n";
  if (registrationForm.reg_state.value == "") strError += "State\n";
  if (registrationForm.reg_phone.value == "") strError += "Contact Phone\n";
   
  if (strError != "") {
   alert("Please complete the following fields\n------------------------------------------\n" + strError);
   return false;
  } else {
   return true;
  }
  
 }
