function FrontPage_Form1_Validator(theForm)
{

  if (theForm.sender_first_name.value == "")
  {
    alert("Please enter a value for the \"Your First Name\" field.");
    theForm.sender_first_name.focus();
    return (false);
  } 

  if (theForm.sender_email.value == "")
  {
    alert("Please enter a value for the \"Your Email\" field.");
    theForm.sender_email.focus();
    return (false);
  }

  if (theForm.sender_email.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Your Email\" field.");
    theForm.sender_email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@.-_";
  var checkStr = theForm.sender_email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }

  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@.-_\" characters in the \"Your Email\" field.");
    theForm.sender_email.focus();
    return (false);
  }

  if (theForm.sender_username.value == "")
  {
    alert("Please enter a value for the \"Your Username\" field.");
    theForm.sender_username.focus();
    return (false);
  } 

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-.";
  var checkStr = theForm.sender_username.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter and digit characters in the \"Your Username\" field.");
    theForm.sender_username.focus();
    return (false);
  }

  if (theForm.recip_first_name.value == "")
  {
    alert("Please enter a value for the \"Friend's First Name\" field.");
    theForm.recip_first_name.focus();
    return (false);
  }
 
  if (theForm.recip_email.value == "")
  {
    alert("Please enter a value for the \"Friend's Email\" field.");
    theForm.recip_email.focus();
    return (false);
  }

  if (theForm.recip_email.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Friend's Email\" field.");
    theForm.recip_email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@.-_,";
  var checkStr = theForm.recip_email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@.-_,\" characters in the \"Friend's Email\" field.");
    theForm.recip_email.focus();
    return (false);
  }
  return (true);
}
