function contribution_Validator(theForm)
{
  if (theForm.contributionamount.value == "")
  {
    alert("Please enter your Contribution Amount.");
    theForm.contributionamount.focus();
    return (false);
  }

  if (theForm.contributionamount.value != "")
  {
	  var checkOK = "0123456789-.,";
	  var checkStr = theForm.contributionamount.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 a valid dollar amount.");
		theForm.contributionamount.focus();
		return (false);
	  }
	
	  if (decPoints > 1)
	  {
		alert("Please enter a valid dollar amount.");
		theForm.contributionamount.focus();
		return (false);
	  }
  }

  if (theForm.contributionamount.value < 250)
  {
    alert("Contribution amount must be $250 or greater.");
    theForm.contributionamount.focus();
    return (false);
  }

  return (true);
}
