$(function() {
	$("form").validate();
	
	$("input:radio").click(function(e){
		$('input:radio').attr('checked', false);
		$(this).attr('checked', 'checked')
		$('input#custom-amount').val("")
		$('input#custom-donation-single').val("")
		$('input#custom-donation').val("")
	});
	
        if($('input#custom-donation')) {
          $('input#custom-donation').blur(function() {
		if($(this).val() != "") {
			$('input:radio').attr('checked', false);
		        $('input#custom-amount').val("")
		        $('input#custom-donation-single').val("")
                        }
	})}
        if($('input#custom-donation-single')) {
          $('input#custom-donation-single').blur(function() {
		if($(this).val() != "") {
		        $('input#custom-amount').val("")
		        $('input#custom-donation').val("")
			$('input:radio').attr('checked', false);
                        }
	})}
	if ($('input#custom-amount')) {
	$('input#custom-amount').blur(function() {
		if($(this).val() != "") {
		        $('input#custom-donation-single').val("")
		        $('input#custom-donation').val("")
			$('input:radio').attr('checked', false);
                        }
	})}
})
