  function ItemReminder()
  {
    if (confirm('Each ensemble set has several matching items that should be ordered together!\r\n\r\nReception cards, "Respond By" cards, "Thank You" notes, and Wedding Announcements may be available in this ensemble.\r\n\r\nIf you need to add additional matching items, click "Cancel" then click "Continue Shopping", otherwise click "OK" to continue your final purchase.'))
    {
        return true;
    }
    else
        return false;
  }

function HideSomething()
{
  ShowHide('cartEmpty',  (iItemCount == 0 ? 1 : 0));
  ShowHide('cartHeader', (iItemCount == 0 ? 0 : 1));
  ShowHide('cartPurchase', (iItemCount == 0 ? 0 : 1));
  ShowHide('cartSummary', (iItemCount == 0 ? 0 : 1));
  ShowHide('cartProofButtons', (iItemCount == 0 ? 0 : 1));
}
function DeleteItem(sItem, sSetID, sPieceID, sCardType)
{
  // Hide this item
  ShowHide(sItem, 0);

  // Decrement the count
  iItemCount -= 1;
  if (iItemCount == 0) HideSomething();

  // Remove this item from the cart
  var obj = GetObject('dummy');
  obj.src = "order.aspx?sel=F&opt=order&set=" + sSetID +
            "&piece=" + sPieceID + "&type=" + sCardType;
  var obj = GetObject('total');
  obj.src = "summary.aspx?type=total&time=" + TimeString();
  return true;
}

function DeleteConfirmItem(sItem, sSetID, sPieceID, sCardType)
{
  // Hide this item
  var obj = GetObject(sItem);
  
  if (obj != null)
  {
	obj.className = "div_off";

	// Decrement the count
	iItemCount -= 1;
	  
	if (iItemCount == 0) 
	{
		document.getElementById('confirmMain').className = "div_off";
		document.getElementById('divPayment').className = "div_off";
		document.getElementById('cartEmpty').className = "div_on";
	}

	// Remove this item from the cart
	var obj = GetObject('dummy');
	obj.src = "order.aspx?sel=F&opt=order&set=" + sSetID +
				"&piece=" + sPieceID + "&type=" + sCardType;
	var obj = GetObject('total');
	obj.src = "summary.aspx?type=grand&time=" + TimeString();
  }
  
  return true;
}

function Magnify(img)
{
	var PageHTML =	"<html><head><title>Magnify Item</title></head>" +
					"<body><table align='center'><tr><td align='center'>" +
					"<img src='" + img + "'></td></tr>" +
					"<tr><td align='center'><br><a style='cursor: pointer; color: #756587; font-family: Verdana, Verdana, Arial, Helvetica; font-size: 12px; font-decoration: underline;' href='javascript:window.close()'>Close Window</a>" +
					"</td></tr></table></body></html>";
					
	var win = window.open("", "magnify", "width=620, height=620, left=" + ((screen.width/2) - 310) + ", top=" + ((screen.height/2) - 310) + ", menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=no");	
	
	win.document.write(PageHTML);
	win.document.close();
}