function validateBid() {
	if (isNaN(document.getElementById('bid').value)) {
		alert('Please bid using only numbers and optionally a decimal point.');
		return false;
	} else {
		if (!document.getElementById('bid').value.match(/^\d+\.?(\d\d?)?$/)) {
			alert('Please bid using the numerical format similar to the "Minimum Bid" price: ' + document.getElementById('minimum_bid').value );
			return false;
		} else if (document.getElementById('bid').value < document.getElementById('minimum_bid').value) {
			alert('You must bid at least \$' + document.getElementById('minimum_bid').value + ' for this auction at this time.');
			return false;
		} else {
			alert('one');
			$(document).ready(function(){
				$("div#confirmDiv").fadeIn(3000, function() {
						$("span#confirmSpan").fadeIn(100);
				});
			});
			alert('two');
		}
	}
	
}

$(document).ready(function(){
  $("input#registerBid").click(function () {
		if (isNaN(document.getElementById('bid').value)) {
			alert('Please bid using only numbers and optionally a decimal point.');
			return false;
		} else {
			if (!document.getElementById('bid').value.match(/^\d+\.?(\d\d?)?$/)) {
				alert('Please bid using the numerical format similar to the "Minimum Bid" price: ' + document.getElementById('minimum_bid').value );
				return false;
			} else if (document.getElementById('bid').value < document.getElementById('minimum_bid').innerText) {
				alert('You must bid at least \$' + document.getElementById('minimum_bid').value + ' for this auction at this time.');
				return false;
			} else {
				$(document).ready(function(){
					$("div#confirmDiv").fadeIn(1000, function() {
							$("span#confirmSpan").fadeIn(2000);
					});
				});
			}
		}
	});
});

