<!--

function checkForm(theForm)
{

if (theForm.fname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.fname.focus();
    return (false);
  }

if (theForm.lname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lname.focus();
    return (false);
  }

if (theForm.salutation.value == "")
  {
    alert("Please enter a value for the \"Salutation\" field.");
    theForm.salutation.focus();
    return (false);
  }



if (theForm.email.value == "")
  {
    alert("Please enter your \"Email\" above.");
    theForm.email.focus();
    return (false);
  }

  invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (theForm.email.value.indexOf(badChar,0) > -1) {
  		alert ('The entered email address contains invalid chars.');
  		return (false);
  		}
  		
  atPos = theForm.email.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('The entered email address doesn\'t contain \"@\" ');
  	return (false);
  	}
  	
 if (theForm.email.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('The entered email address contains 2 \"@s\" ');
  	return (false);
  	}
  	
  	periodPos = theForm.email.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('The entered email address doesn\'t contain a \".\" \(i.e., dot\/period\)');
		return (false);
  	}

/*  
	if (periodPos +4 < theForm.email.value.length) {
		alert ('The entered email address should have exactly 3 characters after the \".\" \(e.g., .com, .net, .org, .gov, ...\)');
                theForm.email.focus();
		return (false);
	}

	if (periodPos +4 > theForm.email.value.length) {
		alert ('The entered email address should have exactly 3 characters after the \".\" \(e.g., .com, .net, .org, .gov, ...\)');
                theForm.email.focus();
		return (false);
	}
*/	

  if (theForm.confirm_email.value == "")
  {
    alert("Please Re-enter your \"Email\" to Confirm it.");
    theForm.confirm_email.focus();
    return (false);
  }	

if (theForm.email.value != theForm.confirm_email.value)
  {
    alert("The TWO email addresses you entered, \"" +  theForm.email.value + "\" and \"" + theForm.confirm_email.value + ",\" do not agree. Please adjust them to agree.");
    theForm.confirm_email.focus();
    return (false);
  }



if (theForm.address1.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.address1.focus();
    return (false);
  }

if (theForm.city.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.city.focus();
    return (false);
  }

if (theForm.state.value == "[no entry]")
  {
    alert("Please select your \"State\".");
    theForm.state.focus();
    return (false);
  }

if (theForm.zip.value == "")
  {
    alert("Please enter a value for the \"Zip Code\" field.");
    theForm.zip.focus();
    return (false);
  }

if (theForm.phone_day.value == "")
  {
    alert("Please enter a value for the \"Daytime Phone\" field.");
    theForm.phone_day.focus();
    return (false);
  }


check_email = confirm(" Is this your correct e-mail address?\n -  \"" +  theForm.email.value + "\" - ")

  if (check_email == false)
  { 
    return (false);
  }


if (theForm.spousefname.value == "")
  {
    theForm.spousefname.value = "\[no entry\]"
    theForm.spouselname.value = "\[no entry\]"
  }

if (theForm.spouselname.value == "")
  {
    theForm.spouselname.value = "\[no entry\]"
  }

if (theForm.address2.value == "")
  {
    theForm.address2.value = "\[no entry\]"
  }

if (theForm.country.value == "")
  {
    theForm.country.value = "\[no entry\]"
  }

if (theForm.where_purchased.value == "")
  {
    theForm.where_purchased.value = "\[no entry\]"
  }

if (theForm.occupation.value == "")
  {
    theForm.occupation.value = "\[no entry\]"
  }

if (theForm.birthyear.value == "")
  {
    theForm.birthyear.value = "\[no entry\]"
  }

if (commentsStat == "default")
  {
    theForm.comments.value = "\[no entry\]"
  }

if (theForm.comments.value == "")
  {
    theForm.comments.value = "\[no entry\]"
  }

 return (true);
}

//-->