function valid_name(theForm)
{



  if (theForm.FirstName.value == "")
  {
      alert("Please enter your FIRST NAME.");
    theForm.FirstName.focus();
    return (false);
  }
  
    if (theForm.LastName.value == "")
  {
      alert("Please enter your LAST NAME.");
    theForm.LastName.focus();
    return (false);
  }
      if (theForm.Phone_1.value == "")
  {
      alert("Please enter your PHONE NUMBER.");
    theForm.Phone_1.focus();
    return (false);
  }
  
        if (theForm.postalcode.value == "")
  {
      alert("Please enter your Your POSTAL CODE.");
    theForm.postalcode.focus();
    return (false);
  }
  
  
  if (theForm.Email.value == "")
  {
      alert("Please enter your E-MAIL ADDRESS.");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email)
		{
		var filter = /^[A-Za-z0-9][A-Za-z0-9\_\-\.]*\@[A-Za-z0-9][A-Za-z0-9\_\-\.]*\.[A-Za-z]{2,3}$/;
		var filter2 = /^.*[\.\@\_\-][\.\@\_\-]+.*$/;
		if( (!filter.test( theForm.Email.value ))  || ( filter2.test( theForm.Email.value )) )
			{
			 alert("E-MAIL ADDRESS is incorrect.");
			theForm.Email.focus();
			return false;
			}
		}
		
	var firstvar=0;
 	box = eval("theForm.interested_for_personal"); 
	if (box.checked == true) firstvar = 1;
	box = eval("theForm.interested_for_bell"); 
	if (box.checked == true) firstvar = 1;
	box = eval("theForm.interested_for_primary_residence"); 
	if (box.checked == true) firstvar = 1;
	box = eval("theForm.interested_for_investment"); 
	if (box.checked == true) firstvar = 1;
	box = eval("theForm.interested_for_other"); 
	if (box.checked == true) firstvar = 1;
			
	
	if (firstvar == 0)
  		{
      alert("WHY ARE YOU INTERESTED IN PURCHASING?");
    	theForm.interested_for_personal.focus();
    	return (false);
  		}
		
		
	if (theForm.aboutus.value == "")
  		{
      alert("HOW DID YOU HEAR ABOUT US?");
    	theForm.aboutus.focus();
    	return (false);
  		}
		
			var secondvar=0;
 	box = eval("theForm.attraction_rre"); 
	if (box.checked == true) secondvar = 1;
	box = eval("theForm.attraction_arts"); 
	if (box.checked == true) secondvar = 1;
	box = eval("theForm.attraction_resort"); 
	if (box.checked == true) secondvar = 1;
	box = eval("theForm.attraction_wine"); 
	if (box.checked == true) secondvar = 1;
	box = eval("theForm.attraction_lease"); 
	if (box.checked == true) secondvar = 1;
	
	
	if (secondvar == 0)
  		{
      alert("WHAT IS YOUR MAIN ATTRACTION TO THE AREA?");
    	theForm.attraction_rre.focus();
    	return (false);
  		}	
		
		
		
 	
  return (true);
}
