function FrontPage_Form1_Validator(theForm)
{

  if (theForm.CanopySize__.value == "")
  {
    alert("Please enter a value for the \"Canopy Size\" field.");
    theForm.CanopySize__.focus();
    return (false);
  }

  if (theForm.CanopySize__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Canopy Size\" field.");
    theForm.CanopySize__.focus();
    return (false);
  }

  if (theForm.CanopySize__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Canopy Size\" field.");
    theForm.CanopySize__.focus();
    return (false);
  }

  if (theForm.Clearance__.value == "")
  {
    alert("Please enter a value for the \"Clearance\" field.");
    theForm.Clearance__.focus();
    return (false);
  }

  if (theForm.Clearance__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Clearance\" field.");
    theForm.Clearance__.focus();
    return (false);
  }

  if (theForm.Clearance__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Clearance\" field.");
    theForm.Clearance__.focus();
    return (false);
  }

  if (theForm.Columns__.value == "")
  {
    alert("Please enter a value for the \"Column Qty.\" field.");
    theForm.Columns__.focus();
    return (false);
  }

  if (theForm.Columns__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Column Qty.\" field.");
    theForm.Columns__.focus();
    return (false);
  }

  if (theForm.Columns__.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Column Qty.\" field.");
    theForm.Columns__.focus();
    return (false);
  }

  var checkOK = "0123456789-.,";
  var checkStr = theForm.Columns__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Column Qty.\" field.");
    theForm.Columns__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"Columns__\" field.");
    theForm.Columns__.focus();
    return (false);
  }

  if (theForm.ColumnCentersWidth__.value == "")
  {
    alert("Please enter a value for the \"Column Centers Width\" field.");
    theForm.ColumnCentersWidth__.focus();
    return (false);
  }

  if (theForm.ColumnCentersWidth__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Column Centers Width\" field.");
    theForm.ColumnCentersWidth__.focus();
    return (false);
  }

  if (theForm.ColumnCentersWidth__.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Column Centers Width\" field.");
    theForm.ColumnCentersWidth__.focus();
    return (false);
  }

  if (theForm.ColumnCentersLength__.value == "")
  {
    alert("Please enter a value for the \"Column Centers Length\" field.");
    theForm.ColumnCentersLength__.focus();
    return (false);
  }

  if (theForm.ColumnCentersLength__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Column Centers Length\" field.");
    theForm.ColumnCentersLength__.focus();
    return (false);
  }

  if (theForm.ColumnCentersLength__.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Column Centers Length\" field.");
    theForm.ColumnCentersLength__.focus();
    return (false);
  }

  if (theForm.CanopyLightingQty__.value == "")
  {
    alert("Please enter a value for the \"Canopy Lighting Qty.\" field.");
    theForm.CanopyLightingQty__.focus();
    return (false);
  }

  if (theForm.CanopyLightingQty__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Canopy Lighting Qty.\" field.");
    theForm.CanopyLightingQty__.focus();
    return (false);
  }

  if (theForm.CanopyLightingQty__.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Canopy Lighting Qty.\" field.");
    theForm.CanopyLightingQty__.focus();
    return (false);
  }

  var checkOK = "0123456789-.,";
  var checkStr = theForm.CanopyLightingQty__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Canopy Lighting Qty.\" field.");
    theForm.CanopyLightingQty__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"CanopyLightingQty__\" field.");
    theForm.CanopyLightingQty__.focus();
    return (false);
  }

  var checkOK = "0123456789-.,";
  var checkStr = theForm.InternalDrainsQty__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"InternalDrainsQty__\" field.");
    theForm.InternalDrainsQty__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"InternalDrainsQty__\" field.");
    theForm.InternalDrainsQty__.focus();
    return (false);
  }

  var checkOK = "0123456789-.,";
  var checkStr = theForm.ElectricalConduitQty__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"ElectricalConduitQty__\" field.");
    theForm.ElectricalConduitQty__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"ElectricalConduitQty__\" field.");
    theForm.ElectricalConduitQty__.focus();
    return (false);
  }

  if (theForm.ColumnCentersLength__1.value == "")
  {
    alert("Please enter a value for the \"Column Centers Length\" field.");
    theForm.ColumnCentersLength__1.focus();
    return (false);
  }

  if (theForm.ColumnCentersLength__1.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Column Centers Length\" field.");
    theForm.ColumnCentersLength__1.focus();
    return (false);
  }

  if (theForm.ColumnCentersLength__1.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Column Centers Length\" field.");
    theForm.ColumnCentersLength__1.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.Soffit__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Soffit\" field.");
    theForm.Soffit__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"Soffit__\" field.");
    theForm.Soffit__.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.PermitCopies__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Permit Copies\" field.");
    theForm.PermitCopies__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"PermitCopies__\" field.");
    theForm.PermitCopies__.focus();
    return (false);
  }

  if (theForm.CompanyName__.value == "")
  {
    alert("Please enter a value for the \"Company Name\" field.");
    theForm.CompanyName__.focus();
    return (false);
  }

  if (theForm.CompanyName__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Company Name\" field.");
    theForm.CompanyName__.focus();
    return (false);
  }

  if (theForm.CompanyName__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Company Name\" field.");
    theForm.CompanyName__.focus();
    return (false);
  }

  if (theForm.CompanyAddress__.value == "")
  {
    alert("Please enter a value for the \"Company Address\" field.");
    theForm.CompanyAddress__.focus();
    return (false);
  }

  if (theForm.CompanyAddress__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Company Address\" field.");
    theForm.CompanyAddress__.focus();
    return (false);
  }

  if (theForm.CompanyAddress__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Company Address\" field.");
    theForm.CompanyAddress__.focus();
    return (false);
  }

  if (theForm.CompanyCity__.value == "")
  {
    alert("Please enter a value for the \"Company City\" field.");
    theForm.CompanyCity__.focus();
    return (false);
  }

  if (theForm.CompanyCity__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Company City\" field.");
    theForm.CompanyCity__.focus();
    return (false);
  }

  if (theForm.CompanyCity__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Company City\" field.");
    theForm.CompanyCity__.focus();
    return (false);
  }

  if (theForm.CompanyState__.value == "")
  {
    alert("Please enter a value for the \"Company State\" field.");
    theForm.CompanyState__.focus();
    return (false);
  }

  if (theForm.CompanyState__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Company State\" field.");
    theForm.CompanyState__.focus();
    return (false);
  }

  if (theForm.CompanyState__.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Company State\" field.");
    theForm.CompanyState__.focus();
    return (false);
  }

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

  if (theForm.CompanyZipCode__.value == "")
  {
    alert("Please enter a value for the \"Company Zip Code\" field.");
    theForm.CompanyZipCode__.focus();
    return (false);
  }

  if (theForm.CompanyZipCode__.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Company Zip Code\" field.");
    theForm.CompanyZipCode__.focus();
    return (false);
  }

  if (theForm.CompanyZipCode__.value.length > 10)
  {
    alert("Please enter at most 10 characters in the \"Company Zip Code\" field.");
    theForm.CompanyZipCode__.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.CompanyZipCode__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Company Zip Code\" field.");
    theForm.CompanyZipCode__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"CompanyZipCode__\" field.");
    theForm.CompanyZipCode__.focus();
    return (false);
  }

  if (theForm.AttentionTo__.value == "")
  {
    alert("Please enter a value for the \"Attention to\" field.");
    theForm.AttentionTo__.focus();
    return (false);
  }

  if (theForm.AttentionTo__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Attention to\" field.");
    theForm.AttentionTo__.focus();
    return (false);
  }

  if (theForm.AttentionTo__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Attention to\" field.");
    theForm.AttentionTo__.focus();
    return (false);
  }

  if (theForm.PhoneNumber__.value == "")
  {
    alert("Please enter a value for the \"Phone Number\" field.");
    theForm.PhoneNumber__.focus();
    return (false);
  }

  if (theForm.PhoneNumber__.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Phone Number\" field.");
    theForm.PhoneNumber__.focus();
    return (false);
  }

  if (theForm.PhoneNumber__.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Phone Number\" field.");
    theForm.PhoneNumber__.focus();
    return (false);
  }

  if (theForm.ShipTo__.value == "")
  {
    alert("Please enter a value for the \"Ship To\" field.");
    theForm.ShipTo__.focus();
    return (false);
  }

  if (theForm.ShipTo__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Ship To\" field.");
    theForm.ShipTo__.focus();
    return (false);
  }

  if (theForm.ShipTo__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Ship To\" field.");
    theForm.ShipTo__.focus();
    return (false);
  }

  if (theForm.ShippingAddress__.value == "")
  {
    alert("Please enter a value for the \"Shipping Address\" field.");
    theForm.ShippingAddress__.focus();
    return (false);
  }

  if (theForm.ShippingAddress__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Shipping Address\" field.");
    theForm.ShippingAddress__.focus();
    return (false);
  }

  if (theForm.ShippingAddress__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Shipping Address\" field.");
    theForm.ShippingAddress__.focus();
    return (false);
  }

  if (theForm.ShippingCity__.value == "")
  {
    alert("Please enter a value for the \"Shipping City\" field.");
    theForm.ShippingCity__.focus();
    return (false);
  }

  if (theForm.ShippingCity__.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Shipping City\" field.");
    theForm.ShippingCity__.focus();
    return (false);
  }

  if (theForm.ShippingCity__.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Shipping City\" field.");
    theForm.ShippingCity__.focus();
    return (false);
  }

  if (theForm.ShippingState__.value == "")
  {
    alert("Please enter a value for the \"Shipping State\" field.");
    theForm.ShippingState__.focus();
    return (false);
  }

  if (theForm.ShippingState__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Shipping State\" field.");
    theForm.ShippingState__.focus();
    return (false);
  }

  if (theForm.ShippingState__.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Shipping State\" field.");
    theForm.ShippingState__.focus();
    return (false);
  }

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

  if (theForm.ShippingZipCode__.value == "")
  {
    alert("Please enter a value for the \"Shipping Zip Code\" field.");
    theForm.ShippingZipCode__.focus();
    return (false);
  }

  if (theForm.ShippingZipCode__.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Shipping Zip Code\" field.");
    theForm.ShippingZipCode__.focus();
    return (false);
  }

  if (theForm.ShippingZipCode__.value.length > 10)
  {
    alert("Please enter at most 10 characters in the \"Shipping Zip Code\" field.");
    theForm.ShippingZipCode__.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.ShippingZipCode__.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Shipping Zip Code\" field.");
    theForm.ShippingZipCode__.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"ShippingZipCode__\" field.");
    theForm.ShippingZipCode__.focus();
    return (false);
  }
  return (true);
}
