// if the customer is buying the variation, the variation_id must be set before the customer can submit the buy button
function buy_product(buyVariation, text) {
	
	var variationId = $('#variation_id').val();
	if (buyVariation == 1 && variationId == '') {
		alert(text);
		return false;
	} else {
		return true;
	}
}
