function confirmDetails() {
  if ( gotName() && gotTelephone() && gotEmail() && gotAddress() && gotPostCode()) {
       return true;
     } else {
       return false;
     }
  }

function gotName() {
    if (document.stage1form.CustomerSurname.value == "") {
      alert("Please enter your Last Name before continuing.");
      document.stage1form.CustomerSurname.className="contacterror";
      document.stage1form.CustomerSurname.focus();
      return false;
    } else {
    return true;
    }
}

function gotTelephone() {
    if (document.stage1form.CustomerTelephone1.value == "") {
      alert("Please enter your telephone number before continuing.");
      document.stage1form.CustomerTelephone1.className="contacterror";
      document.stage1form.CustomerTelephone1.focus();
      return false;
    } else {
    return true;
    }
}

function gotEmail() {
    if (document.stage1form.EmailAddress.value == "") {
      alert("Please enter your email address before continuing.");
      document.stage1form.EmailAddress.className="contacterror";
      document.stage1form.EmailAddress.focus();
      return false;
    } else {
    return true;
    }
}

function gotAddress() {
    if (document.stage1form.Address1.value == "") {
      alert("Please enter the first line of your Address before continuing.");
      document.stage1form.Address1.className="contacterror";
      document.stage1form.Address1.focus();
      return false;
    } else {
    return true;
    }
}

function gotPostCode() {
    if (document.stage1form.PostCode.value == "") {
      alert("Please enter your Post Code before continuing.");
      document.stage1form.PostCode.className="contacterror";
      document.stage1form.PostCode.focus();
      return false;
    } else {
    return true;
    }
}

