
	


function checkSearch(){

if ( !document.customSearch.beachfront.checked ){

	document.customSearch.beachfront.value = "";

	}

if ( !document.customSearch.pool.checked ){

	document.customSearch.pool.value = "";

	}

if ( !document.customSearch.pets.checked ){

	document.customSearch.pets.value = "";

	}

}



function entercontest(){

	var newWindow=window.open("contest/index.html","entercontest","Height=500,Width=500,scrollbars,resizable")

	return true

}



function sendFriend(){

var sendPal = window.open('fortmyersbeachpop.html','NewWindow','left=100,top=100,width=350,height=150,directories=0,channelmode=0,toolbar=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1')

}



function whatsThis(){

 var whatThis = window.open("email_whats_this.html","Whats_This","height=300,width=400,top=50,left=50,resizable=yes,location=no")

}





<!-- VISITOR FORM DETAILS -->

function isEmailAddr(email)

{

  var result = false;

  var theStr = new String(email);

  var index = theStr.indexOf("@");

  if (index > 0)

  {

    var pindex = theStr.indexOf(".",index);

    if ((pindex > index+1) && (theStr.length > pindex+1))

	result = true;

  }

  return result;

}



function validEmail(formField,fieldLabel,required)

{

	var result = true;

	

	if (required && !validRequired(formField,fieldLabel))

		result = false;



	if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) )

	{

		alert("Please enter a complete email address in the form: yourname@yourdomain.com");

		formField.focus();

		result = false;

	}

   

  return result;



}



function validRequired(formField,fieldLabel)

{

	var result = true;

	

	if (formField.value == "")

	{

		alert('Please enter a value for the "' + fieldLabel +'" field.');

		formField.focus();

		result = false;

	}

	

	return result;

}



function checkVisitorForm(theForm)

{

	if (!validEmail(theForm.email,"Email Address",true))

		return false;



	return true;

}



function checkPostcard(theForm)

{

	if (!validEmail(theForm.email01,"Your Email",true))

		return false;



	if (!validEmail(theForm.email02,"Email of Recipient",true))

		return false;



	return true;

}

<!-- END VISITOR FORM DETAILS -->



<!-- EMAIL CLUB DETAILS -->

function isEmailAddr(email)

{

  var result = false;

  var theStr = new String(email);

  var index = theStr.indexOf("@");

  if (index > 0)

  {

    var pindex = theStr.indexOf(".",index);

    if ((pindex > index+1) && (theStr.length > pindex+1))

	result = true;

  }

  return result;

}



function validEmail(formField,fieldLabel,required)

{

	var result = true;

	

	if (required && !validRequired(formField,fieldLabel))

		result = false;



	if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) )

	{

		alert("Please enter a complete email address in the form: yourname@yourdomain.com");

		formField.focus();

		result = false;

	}

   

  return result;



}



function validRequired(formField,fieldLabel)

{

	var result = true;

	

	if (formField.value == "")

	{

		alert('Please enter a value for the "' + fieldLabel +'" field.');

		formField.focus();

		result = false;

	}

	

	return result;

}



function checkEmailClub(theForm)

{

	if (!validEmail(theForm.email,"Email Address",true))

		return false;



	return true;

}

<!-- END EMAIL CLUB DETAILS -->