function email_Validator(theForm)
{

  if (theForm.name_first.value == "")
  {
    alert("Please enter your first name.");
    theForm.name_first.focus();
    return (false);
  }
  
  if (theForm.name_last.value == "")
  {
    alert("Please enter your last name.");
    theForm.name_last.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }

  if ((theForm.email.value.indexOf('@',0) == -1) || (theForm.email.value.indexOf('.',0) == -1))
  {
    alert("Your email address is incorrectly formatted. Please enter again.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.friends_first.value == "")
  {
    alert("Please enter your friend's first name.");
    theForm.friends_first.focus();
    return (false);
  }
  
  if (theForm.friends_last.value == "")
  {
    alert("Please enter your friend's last name.");
    theForm.friends_last.focus();
    return (false);
  }

  if (theForm.friends_email.value == "")
  {
    alert("Please enter your friend's email address.");
    theForm.friends_email.focus();
    return (false);
  }

  if ((theForm.friends_email.value.indexOf('@',0) == -1) || (theForm.friends_email.value.indexOf('.',0) == -1))
  {
    alert("Friend's email address is incorrectly formatted. Please enter again.");
    theForm.friends_email.focus();
    return (false);
  }

  return (true);
}
