function Form1_Validator(theForm)
{

if (theForm.Amount.value == "")
  {
    alert("You must enter a valid amount for your donation.");
    theForm.price1.focus();
    return (false);
  }
  
if (theForm.price1.value <=0)
  {
    alert("You must enter an amount larger than 0.");
    theForm.Amount.focus();
    return (false);
  }


var checkOK = "0123456789.";
var checkStr = theForm.price1.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 += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Donation\" field.");
    theForm.price1.focus();
    return (false);
  }
  
}


