$(document).ready(function() {
	$("#showFullReview").click(function() {
		$("#fullEmRev").css("display","block");
	});
	$("#fullEmRev").mouseleave(function() {
		$("#fullEmRev").css("display","none");
	});
});

function giftCheck() 
{
	var returnval;
	var summ = 0;
	$(".giftQty").each(function (){
			summ += Number($(this).val());
	});

	if (document.getElementById("giftmaxvar").value < summ)
	{
		alert("You can only choose " + document.getElementById("giftmaxvar").value + " gift(s). Please adjust your selections.");
		
		returnval = false;
	}
	else {
		returnval = true;
	}
	return returnval;
}

function putEmail() 
{
	SetCookie("NLpEmail",document.getElementById("newsinp").value);
}

function getEmail()
{
	  if (GetCookie("NLpEmail") != "")
		document.getElementById("nlemail").value = GetCookie("NLpEmail");
}

function pushItem()
{
	SetCookie("OOSIName",document.getElementById("iid").value);
	SetCookie("OOSICode",document.getElementById("icode").value);
}

function getItem()
{
	  if (GetCookie("OOSIName") != "")
		document.getElementById("itemname").value = GetCookie("OOSIName");
	  if (GetCookie("OOSICode") != "")
		document.getElementById("itemcode").value = GetCookie("OOSICode");
}