
		function clearDefault(el) {
			if (el.value.substring(0,3)=="***"){
				if (el.defaultValue==el.value) el.value = ""
				if (el.style) el.style.cssText = ""
	  				el.style.width = "400px"
					el.style.fontFamily = "arial"
			}
		}

		// minimum donation value
		var MINDONATION=5;
		var MAXDONATION=10000;

		function cmdDonate_onclick() {

			if (document.donate.NPOs.value =="none" ){
				alert("You must select a nonprofit." );
				return false;
			}

			//var f=document.donate
			//var h=f.txtinstruct.value
			//if (h.substring(0,2)=="***"){
				//alert("hello");
				//h="";
			//}


			var f=document.donate
			var h=f.txtinstruct.value
			var g=h.length
				if (g>500) {
					alert("Your Special Instructions cannot be more than approximately 60 words.");
					return false;	
			}
					

			d=document.donate.txtDonation.value


			for (i = 0; i < d.length; i++) {
			// ||(d.substring(i, i + 1) == "$")) ||(d.substring(i, i + 1) == ",") ||(d.substring(i, i + 1) == ",")
			if (!(  (d.substring(i, i + 1) >= "0")  )) {
			//if (!(  ((d.substring(i, i + 1) >= "0") && (d.substring(i, i + 1) <= "9")) || (d.substring(i, i + 1) == ".")  )) {
						alert("Your donation must be in whole dollars with no cents.  Please do not include a '$', a comma or a decimal when typing in the amount.")
						//alert("You must indicate a numeric value for a donation, please do not use a '$'.\n Please do not use a comma for donations over $999.99.")
						return false
			}
			}
				if (d < MINDONATION) {
				alert("The minimum donation amount is $"+MINDONATION+".")
				return false
				}
				if (d > MAXDONATION) {
				alert("The maximum donation amount is $"+MAXDONATION+".")
				return false
				}


			document.donate.mode.value="add"
			// document.donate.reloads.value=1

			document.donate.submit()
			return true
		}
