	function checkForOther(dType) {
		var dSelect = jQuery('#'+dType+'DonationAmount').val();
		(dSelect == 'other' ? jQuery('#other_'+dType+'DonationAmountArea').css('visibility', 'visible') : jQuery('#other_'+dType+'DonationAmountArea').css('visibility', 'hidden'));
	}
	function verifyDonation(dType){
		var theForm = jQuery('#'+dType+'DonationForm');
		var dAmount	= new Number((jQuery('#'+dType+'DonationAmount').val() == 'other' ? jQuery('#other_'+dType+'DonationAmount').val() : jQuery('#'+dType+'DonationAmount').val()));
		var flag = 0;
		var alertText = '';
		switch(dType){
			case 'monthly':
				if(dAmount > 91.66){
					flag =1;
					alertText = 'Inelligible Donation Amount: No individual may contribute more than $1100.00 ($91.66/month) to a registered political association in one calendar year. Please adjust your amount.';
					jQuery('#other_'+dType+'DonationAmount').val('91.66');
				} else if (dAmount <= 0 || isNaN(dAmount)){
					flag = 1;
					alertText = 'Inelligible Donation Amount: Donation amounts must be greater than $0. Please adjust your amount.';
					jQuery('#other_'+dType+'DonationAmount').val('1.00');
				} else {
					theForm.children('input[name="a3"]').val(dAmount.toFixed(2));
				}					
				break;
			case 'oneTime':
				if(dAmount > 1100) {
					flag =1;
					alertText = 'Inelligible Donation Amount: No individual may contribute more than $1100.00 to a registered political association in one calendar year. Please adjust your amount.';
					jQuery('#other_'+dType+'DonationAmount').val('1100.00');
				} else if (dAmount <= 0 || isNaN(dAmount)){
					flag = 1;
					alertText = 'Inelligible Donation Amount: Donation amounts must be greater than $0. Please adjust your amount.';
					jQuery('#other_'+dType+'DonationAmount').val('5.00');
				} else {
					theForm.children('input[name="amount"]').val(dAmount.toFixed(2));
				}
				break;
			default:
				flag = 1;
				alertText = 'Invalid Donation Type.';
		}
		if(flag == 0) {
			theForm.submit();
		} else {
			alert(alertText);
			return false;
		}
	}
