<!--
// Functions

var ClickCount = 0;
function checkForm(theForm) {
/*
var ischecked=0;
for (x=0;x<theForm.recipient.length;x++) {
if (theForm.recipient[x].checked!=false) {
ischecked=1;
 }
}
if (ischecked<1) {
alert("Please select a recipient from the options list");
return false;
}
*/

if (theForm.boat.value=="") {
alert("Please add your boat's name");
theForm.boat.focus();
return false;
}
if (theForm.name.value=="") {
alert("Please add your name");
theForm.name.focus();
return false;
}
if (theForm.tel.value=="") {
alert("Please add your telephone number");
theForm.tel.focus();
return false;
}
if (theForm.email.value=="") {
alert("Please enter your email address");
theForm.email.focus();
return false;
}
if (theForm.email.value.indexOf("@") == -1) {
alert("Please enter a valid email address (you have not entered an @ sign)");
theForm.email.focus();
return false;
}    
if (theForm.email.value.indexOf(".") == -1) {
alert("Please enter a valid email address (you have not entered a full stop anywhere)");
theForm.email.focus();
return false;
}
  if (ClickCount > 0)
  {   
    alert("Your enquiry is being processed. Please be patient.") ;
    return false;
  }

ClickCount = 1;
return true;
}


function linkTo(page,x,y) {
var linksPage = window.open(page,"link","status=yes,toolbar=no,location=yes,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars=yes"); 
linksPage.focus();
}

//-->
