// JavaScript Document
function resetform() {
document.forms[0].elements[14]=="";
}
function submitForms() {
if (isMail() && isFname() && isLname() && isAddress() && isCity() && isCounty() && isPostcode () && isPhone() && isFax() && isMail() && isMake()
&& isLength() && isWeight() && isBeam ()&& isKeel() && isLocation() && isDestination())
if (confirm("\nYou are about to e-mail your submission. \n\nOKAY to submit.    CANCEL to abort."))
{
alert("\nYour submission will now be sent. \n\nThank you for submitting your details to David Wolff - Boat Transport Services");
return true;
}
else
{
alert("\n You have chosen to abort the submission.");
return false
}
else 
return false;
}
function isFname() {
if (document.forms[0].elements[1].value == "")
{
alert ("\n The First Name field is blank. \n\n Please enter your first name.")
document.forms[0].elements[1].focus();
return false;
}
return true;
}
function isLname() {
if (document.forms[0].elements[2].value == "") {
alert ("\n The Last Name field is blank. \n\n Please enter your last name.")
document.forms[0].elements[2].focus();
return false;
}
return true;
}
function isAddress() {
if (document.forms[0].elements[3].value == "") {
alert ("\n The Address field is blank. \n\n Please enter your address.")
document.forms[0].elements[3].focus();
return false;
}
return true;
}
function isCity(){
if (document.forms[0].elements[4].value == "")
{
alert ("\n The Town/City field is blank. \n\n Please enter your town or city.")
document.forms[0].elements[4].focus();
return false;
}
return true;
}
function isCounty() {
if (document.forms[0].elements[5].value == "") {
alert ("\n The County field is blank.\n\n Please enter your county.")
document.forms[0].elements[5].focus();
return false;
}
return true;
}
function isPostcode() {
if (document.forms[0].elements[6].value == "") {
alert ("\n The Postal code field is blank. \n\n Please enter your Postal code.")
document.forms[0].elements[6].focus();
return false;
}
return true;
}
function isPhone() {
if (document.forms[0].elements[7].value == "") {
alert ("\n The Phone No. field is blank. \n\n Please enter your Phone No.")
document.forms[0].elements[7].focus();
return false;
}
return true;
}
function isFax() {
if (document.forms[0].elements[8].value == "") {
alert ("\n The Fax No. field is blank. \n\n Please enter your Fax No.")
document.forms[0].elements[8].focus();
return false;
}
return true;
}
function isMail() {
if (document.forms[0].elements[9].value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
document.forms[0].elements[9].focus();
return false;
}
return true;
}
function isMake() {
if (document.forms[0].elements[10].value == "")
{
alert ("\n The Make field is blank. \n\n Please enter the make of boat.")
document.forms[0].elements[10].focus();
return false;
}
return true;
}
function isLength() {
if (document.forms[0].elements[11].value == "")
{
alert ("\n The Length field is blank. \n\n Please enter boat length.")
document.forms[0].elements[11].focus();
return false;
}
return true;
}
function isWeight() {
if (document.forms[0].elements[12].value == "")
{
alert ("\n The Weight field is blank. \n\n Please enter boat weight.")
document.forms[0].elements[12].focus();
return false;
}
return true;
}
function isBeam () {
if (document.forms[0].elements[13].value == "")
{
alert ("\n The Beam field is blank. \n\n Please enter boat beam.")
document.forms[0].elements[13].focus();
return false;
}
return true;
}
function isKeel() {
if (document.forms[0].elements[14].value == "")
{
alert ("\n The Keel field is blank. \n\n Please the boat keel type.")
document.forms[0].elements[14].focus();
return false;
}
return true;
}
function isLocation() {
if (document.forms[0].elements[15].value == "")
{
alert ("\n The Location field is blank. \n\n Please give the current location of the boat.")
document.forms[0].elements[15].focus();
return false;
}

return true;
}
function isDestination() {
if (document.forms[0].elements[16].value == "")
{
alert ("\n The Destination field is blank. \n\n Please give the final destination of the boat.")
document.forms[0].elements[16].focus();
return false;
}
return true;
}
