function submitForm( who ){
	if( window.formSubmitted == null ){
		who.className = 'buttonClicked';
		who.value = 'Processing, Please Wait...';
		who.blur();
		window.formSubmitted = who.form;
		if( window.rewriteExpireInterval ){
			clearInterval( window.rewriteExpireInterval );
		}
		return true;
	}
	this.disabled=true;
	return false;
}
function checkDonationAmount(btn){
	txtDonation.value = txtDonation.value.replace( /[^0-9\.]/g, '' );
	
	var n = parseFloat( txtDonation.value );
	if( isNaN(n) ){
		alert( "Please enter an amount to donate." );
		txtDonation.focus();
		return false;
	}
	else{
		return submitForm(btn);
	}
}
function checkDonation(){
	if( window.txtDonation != null ){
		txtDonation.value = txtDonation.value.replace( /[^0-9\.]/g, '' );
		var n = parseFloat( txtDonation.value );
		if( isNaN(n) ){
			return true;
		}
		else{
			if( confirm("You didn't add your tax deductible donation. Would you like to include it?") ){
				txtTargetUrl.value = 'Continue.aspx'; 
				btnAddDonation.click();
				return false;
			}
			return true;
		}
	}
	else{
		return true;
	}
}

Validator.aspnetForm = (Validator.aspnetForm) ? Validator.aspnetForm : new Validator('aspnetForm');
