function ValidateForm(form) {

decallowed = 2;  // how many decimals are allowed?

	if (isNaN(form.famount.value) || form.famount.value == "") {
		alert("The amount needs to be a valid number.  Proper format is 25 or 25.00 please try again.");
		form.famount.focus();
		return false;
	}
	else {
		if (form.famount.value.indexOf('.') == -1) form.famount.value += "";
		dectext = form.famount.value.substring(form.famount.value.indexOf('.')+1, form.famount.value.length);

			if (dectext.length > decallowed)
				{
				alert ("The amount can be a number with up to " + decallowed + " decimal places.  Proper format is 25 or 25.00 please try again.");
				form.famount.focus();
				return false;
				}
			else {
			return (true);
      		}
		return false;
   		}
return true;
}

