function RemoveItem(ReservedItemID,ProductVariationID)
{
	window.location.replace("./RemoveItemFromCart.html?ID="+ReservedItemID+"&PID="+ProductVariationID)
}



function MICheckFields() {
var themessage = "You must fill out the following fields: ";
if (document.form.Email.value=="") {
themessage = themessage + "\nYour email";
}
if (document.form.Password.value=="") {
themessage = themessage + "\nYour password";
}
//alert if fields are empty and cancel form submit
if (themessage == "You must fill out the following fields: ") {

document.form.submit();
return true;
}
else {
alert(themessage);
return false;
   }
}


function MICheckForgottenFields() {
var themessage2 = "You must fill out the following field: ";
if (document.form2.Email.value=="") {
themessage2 = themessage2 + "\nYour email in the forgotten password section.";
}
//alert if fields are empty and cancel form submit
if (themessage2 == "You must fill out the following field: ") {

document.form2.submit();
return true;
}
else {
alert(themessage2);
return false;
   }
}


function expandadvice(thistag)
{
	for(i=1;i<=27;i++)
	{
		document.getElementById("text"+i).style.display='none';
	}
	document.getElementById("text"+thistag).style.display='';
}
function closeadvice()
{
	for(i=1;i<=27;i++)
	{
		document.getElementById("text"+i).style.display='none';
	}
}
