  function check()
   {
    submit = 1;
    submitinfo = "Please enter: ";
    if (document.getElementById('firstname').value == "")
    {
     submitinfo = submitinfo + "\n\- your first name"
     submit = 0;
    }
    if (document.getElementById('lastname').value == "")
    {
     submitinfo = submitinfo + "\n\- your last name"
     submit = 0;
    }
    if (document.getElementById('address1').value == "")
    {
     submitinfo = submitinfo + "\n\- your address"
     submit = 0;
    }
    if (document.getElementById('city').value == "")
    {
     submitinfo = submitinfo + "\n\- your city"
     submit = 0;
    }
    if (document.getElementById('zip').value == "")
    {
     submitinfo = submitinfo + "\n\- your zip code"
     submit = 0;
    }
    if (document.getElementById('email').value == "")
    {
     submitinfo = submitinfo + "\n\- your email address"
     submit = 0;
    }
    if (document.getElementById('phone1').value == "" || document.getElementById('phone2').value == "" || document.getElementById('phone2').value == "")
    {
     submitinfo = submitinfo + "\n\- a valid phone number"
     submit = 0;
    }
    if (submit != 0)
    {
     document.getElementById('Form').submit();
    }
    else
    {
     alert(submitinfo);
    }
   }
   
function mailus()
{
 var name   = document.getElementById('fname').value + ' ' + document.getElementById('lname').value;
 var phone  = "(" + document.getElementById('phone1').value + ") " + document.getElementById('phone2').value + "-" + document.getElementById('phone3').value;
 var email  = document.getElementById('email').value;
 var marina = document.getElementById('marina').options[document.getElementById('marina').selectedIndex].value;
 submit = 1;
 submitinfo = "Please enter: ";
 if (document.getElementById('fname').value == "" || document.getElementById('lname').value == "")
 {
  submitinfo = submitinfo + "\n\- your name"
  submit = 0;
 }
 if (document.getElementById('email').value == "")
 {
  submitinfo = submitinfo + "\n\- your email address"
  submit = 0;
 }
 if (document.getElementById('phone1').value == "" || document.getElementById('phone2').value == "" || document.getElementById('phone3').value == "")
 {
  submitinfo = submitinfo + "\n\- a valid phone number"
  submit = 0;
 }
 if (document.getElementById('marina').options[document.getElementById('marina').selectedIndex].value === "choose")
 {
  submitinfo = submitinfo + "\n\- a marina"
  submit = 0;
 }
 if (submit != 0)
 {
  openMail(name, phone, email, marina);
  document.getElementById('seasonal').submit();
 }
 else
 {
  alert(submitinfo);
 }
}

function openMail(name, phone, email, marina)
{
 xmlhttp=GetXmlHttpObject();
 if (xmlhttp==null)
 {
  alert ("Browser does not support HTTP Request");
  return;
 }
 var url="mailus.php";
 url=url+"?name="+name;
 url=url+"&phone="+phone;
 url=url+"&email="+email;
 url=url+"&marina="+marina;
 url=url+"&sid="+Math.random();
 xmlhttp.onreadystatechange=stateChanged;
 xmlhttp.open("GET",url,false);
 xmlhttp.send(null);
}

function stateChanged()
{
}

function GetXmlHttpObject()
{
 if (window.XMLHttpRequest)
 {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
 }
 if (window.ActiveXObject)
 {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
 }
 return null;
}
