function qvShowExcludedBubble() {
	$("#quickview_excluded_bubble").remove();
	
	var excludedDetail = 'The dollar value of this item will count toward meeting a required minimum purchase total necessary to receive a discount, but the price of this item itself will not be discounted. Only other eligible items in your cart will be discounted. (Example: You can purchase this product to reach the order threshold to receive a discount, but you will only receive the discount on other eligible items in your cart.)';
		
	var offset = $("#quickview_excludedMessage").offset();
	var left = offset.left - 0;
	var top = offset.top - 170;
	
	$("body").prepend('<div id="quickview_excluded_bubble"><p></p></div>');
	
	$("#quickview_excluded_bubble").css("left", left);
	$("#quickview_excluded_bubble").css("top", top);
	$("#quickview_excluded_bubble").css("opacity", 0.9);
	$("#quickview_excluded_bubble p").html(excludedDetail);
	$("#quickview_excluded_bubble").show();
}

function qvHideExcludedBubble() {
	$("#quickview_excluded_bubble").fadeOut(function() {
		$("#quickview_excluded_bubble").remove();
	});
}
		
function viewMoreOtherStyles() {
	$("#quickviewPDP .otherStyles").css("overflow", "auto");
	$("#quickviewPDP .otherStyles a.more").css("display", "inline");
	$("#quickviewPDP .viewMoreStyles").css("display", "none");
}

function validateQuickViewAddToCart(formObj) {
	// TODO: Need to validate for integer
	if (formObj.qty && isNaN($(formObj.qty).val())) {
		alert("Please enter a valid quantity.");
		return false;
	}
	if (formObj.size && $(formObj.size).val() == "choose") {
		alert("Please select a size.");
		return false;
	}
	return true;
}

function displayBackOrderMsg(thisObj) {
	var index = thisObj.selectedIndex;
	
	$("#backorderMsg").html(backorderMsg[index]);
}