// JavaScript Document
(function ($) {
    $(document).ready(function () {
				$('#fitGotoCheckoutGold').submit(function () {
				    var quantity = parseInt($('#goldQuantity').val());
						if (isNaN(quantity) || quantity <= 0) {
						    alert('The amount must be more than 0');
								$('#goldQuantity').focus();
								return false;
						}
						var price = parseFloat($('#goldPrice').val());
						if (isNaN(price) || price < 1) {
						    alert('The price must be more than 1');
								$('#goldPrice').focus();
								return false;
						}
				});
		});
})(jQuery);