	function GoToPage(URL)
	{
		location.href = URL;
	}

	function InvokeAction(A)
	{
		document.forms[0].action += A;
		document.forms[0].submit();
	}
	function InvokeFormAction(form, value)
	{
		document.forms[form].action += value;
		document.forms[form].submit();
	}

	function DecreaseQuantity(Seqno)
	{
		document.forms[0]['Quantity_' + Seqno].value = parseInt(document.forms[0]['Quantity_' + Seqno].value) - 1;

		var re = new RegExp(/^[0-9]+$/);
		if (document.forms[0]['Quantity_' + Seqno].value < 1 || !re.test(document.forms[0]['Quantity_' + Seqno].value))
		{
			document.forms[0]['Quantity_' + Seqno].value = 1;
		}
	}

	function IncreaseQuantity(Seqno)
	{
		document.forms[0]['Quantity_' + Seqno].value = parseInt(document.forms[0]['Quantity_' + Seqno].value) + 1;

		var re = new RegExp(/^[0-9]+$/);
		if (document.forms[0]['Quantity_' + Seqno].value < 1 || !re.test(document.forms[0]['Quantity_' + Seqno].value))
		{
			document.forms[0]['Quantity_' + Seqno].value = 1;
		}
	}

	function CartRemoveItem(i)
	{
		InvokeAction('Delete&Seqno=' + i);
	}