function FrontPage_Form1_Validator(theForm)
{

  var checkOK = "0123456789-,";
  var checkStr = theForm.Discount.value;
  var allValid = true;
  var validGroups = 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 += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Discount\" field.");
    theForm.Discount.focus();
    return (false);
  }

  if (theForm.SubmitterName.value == "")
  {
    alert("Please enter a value for the \"SubmitterName\" field.");
    theForm.SubmitterName.focus();
    return (false);
  }

  if (theForm.SubmitterName.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"SubmitterName\" field.");
    theForm.SubmitterName.focus();
    return (false);
  }

  if (theForm.SubmitterEmailID.value == "")
  {
    alert("Please enter a value for the \"SubmitterEmailID\" field.");
    theForm.SubmitterEmailID.focus();
    return (false);
  }

  if (theForm.SubmitterEmailID.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"SubmitterEmailID\" field.");
    theForm.SubmitterEmailID.focus();
    return (false);
  }

  if (theForm.SubmitterMobile.value == "")
  {
    alert("Please enter a value for the \"SubmitterMobile\" field.");
    theForm.SubmitterMobile.focus();
    return (false);
  }

  if (theForm.SubmitterMobile.value.length < 8)
  {
    alert("Please enter at least 8 characters in the \"SubmitterMobile\" field.");
    theForm.SubmitterMobile.focus();
    return (false);
  }

  if (theForm.SubmitterMobile.value.length > 16)
  {

    alert("Please enter at most 16 characters in the \"SubmitterMobile\" field.");
    theForm.SubmitterMobile.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.SubmitterMobile.value;
  var allValid = true;
  var validGroups = 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 digit characters in the \"SubmitterMobile\" field.");
    theForm.SubmitterMobile.focus();
    return (false);
  }

  var checkStr1 = theForm.AccessCode.value;
  var checkStr2 = theForm.RNumber.value;
if(checkStr1!=checkStr2)
{
    alert("Invalid Access Code");
    theForm.AccessCode.focus();
return (false);
}
var sendStr="AccessCode=" & theForm.AccessCode.value;
alert (sendStr);
  return (true);
}