function Form1_Validator(theForm)
{
  if (theForm.email.value == "")
  {
    alert("You must fill in a valid email address.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length < 5)
  {
    alert("You must fill in a valid email address.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length > 50)
  {
    alert("You must fill in a valid email address.");
    theForm.email.focus();
    return (false);
  }
var goodEmail = theForm.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.ca)|(\..{2,2}))$)\b/gi);
var good;
if (goodEmail)
{
   good = true
} else {
   alert('You must fill in a valid email address.')
   theForm.email.focus()
   theForm.email.select()
   return (false);
   }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@._-";
  var checkStr = theForm.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("You must fill in a valid email address.");
    theForm.email.focus();
    return (false);
  }
  return (true);
}


function Form2_Validator(theForm)
{
  if (theForm.email.value == "")
  {
    alert("You must fill in a valid recipient email address.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length < 5)
  {
    alert("You must fill in a valid recipient email address.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length > 50)
  {
    alert("You must fill in a valid recipient email address.");
    theForm.email.focus();
    return (false);
  }
var goodEmail = theForm.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.ca)|(\..{2,2}))$)\b/gi);
var good;
if (goodEmail)
{
   good = true
} else {
   alert('You must fill in a valid recipient email address.')
   theForm.email.focus()
   theForm.email.select()
   return (false);
   }
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@._-";
  var checkStr = theForm.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("You must fill in a valid recipient email address.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.sender.value == "")
  {
    alert("You must fill in a valid email address.");
    theForm.sender.focus();
    return (false);
  }
  if (theForm.sender.value.length < 5)
  {
    alert("You must fill in a valid email address.");
    theForm.sender.focus();
    return (false);
  }
  if (theForm.sender.value.length > 50)
  {
    alert("You must fill in a valid email address.");
    theForm.sender.focus();
    return (false);
  }
var goodEmail = theForm.sender.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.ca)|(\..{2,2}))$)\b/gi);
var good;
if (goodEmail)
{
   good = true
} else {
   alert('You must fill in a valid email address.')
   theForm.sender.focus()
   theForm.sender.select()
   return (false);
   }
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@._-";
  var checkStr = theForm.sender.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("You must fill in a valid email address.");
    theForm.sender.focus();
    return (false);
  }

  return (true);
}
