function test()
{
alert('ds');
}
function fncAddItem(l_iProductID, l_sProductName, l_sPrice, l_sMemberType)
{
	var l_oQuantity
	var l_oColour
	var l_sOrderDetail
	var l_oTotalFrames
	var l_oTotalPrice
	var l_bConfirmOrder = false

	l_oTotalFrames = document.getElementById('spnTotalFrames');
	l_oTotalPrice = document.getElementById('spnTotalPrice');
	l_oQuantity = document.getElementById('txtQuantity' + l_iProductID);
	
	
	if (l_oQuantity.value != '')
	{
	l_sOrderDetail = 'Check your order :\n';
	l_sOrderDetail = 	l_sOrderDetail + 'Product Code :' + l_sProductName + '\n';	
	l_sOrderDetail = 	l_sOrderDetail + 'Unit Price :' + l_sPrice + '\n';	
	l_sOrderDetail = 	l_sOrderDetail + 'Total Price :' + parseInt(l_sPrice)*parseInt(l_oQuantity.value) + '\n';		

	l_bConfirmOrder = confirm(l_sOrderDetail);
	
	if(l_bConfirmOrder)
	{
		if(l_oTotalPrice.innerHTML == '')
			l_oTotalPrice.innerHTML = 0
		if(l_oTotalFrames.innerHTML == '')
			l_oTotalFrames.innerHTML = 0
				
		l_oTotalPrice.innerHTML = parseInt(l_oTotalPrice.innerHTML) + parseInt(l_sPrice)*parseInt(l_oQuantity.value);
		l_oTotalFrames.innerHTML = parseInt(l_oTotalFrames.innerHTML) + parseInt(l_oQuantity.value);
		document.frmCatalogueList.hdnProductIDList.value = document.frmCatalogueList.hdnProductIDList.value + l_iProductID +',';
		document.frmCatalogueList.hdnQuantityList.value = document.frmCatalogueList.hdnQuantityList.value + l_oQuantity.value +',';
		document.frmCatalogueList.hdnTotalQuantity.value = parseInt(l_oTotalFrames.innerHTML);
		document.frmCatalogueList.hdnTotalPrice.value = parseInt(l_oTotalPrice.innerHTML);		
	}	
	}
	else
	{
		l_oQuantity.focus();
		alert('Please enter a quantity ');	
	}	
	
}


function fncConitueShopping()
{
	document.frmCatalogueList.action = 'product_list.asp';
	document.frmCatalogueList.submit();
}

function fncViewCart()
{
	document.frmCatalogueList.action = 'view_cart.asp';
	document.frmCatalogueList.submit();
}

function fncCheckout()
{
	document.frmCatalogueList.action = 'cart_checkout.asp';
	document.frmCatalogueList.submit();
}

function fncClearCart()
{
	document.frmCatalogueList.hdnProductIDList.value = '';
	document.frmCatalogueList.hdnQuantityList.value = '';
	document.frmCatalogueList.hdnTotalQuantity.value = '';
	document.frmCatalogueList.hdnTotalPrice.value = '';
	document.frmCatalogueList.hdnProductIDList.value = '';
	fncConitueShopping();

}

function fncRemoveItem()
{

}

function fncSubmitOrder()
{
	document.frmCatalogueList.action = 'submit_order.asp';
	document.frmCatalogueList.submit();
}