<!--#include file="../owFunctions/I_GeneralFunctions.asp"-->
<%
	'************************************************************************************
	'*																					*
	'*	MODIFICATION TO THIS SCRIPT OR ANY FILES INCLUDED WITH 							*
	'*		ONEWORLDSTORE IS DONE AT YOUR OWN RISK!										*
	'*	Product  : OneWorldStore														*
	'*	Version  : 9.0000																*
	'*	Modified : June 2004															*
	'*	Copyright:	Copyright (C) 2004 OneWorldStore.Com								*
	'*				Registration Number: 1024507										*
	'*				http://strategis.ic.gc.ca/											*
	'*																					*
	'************************************************************************************
	
	Call ActionSubroutine()	
	
	'************************************************************************************
	'*																					*
	'*																					*
	'*																					*
	'************************************************************************************
	Sub ActionSubroutine()

		pIdCartRow 	= CONVERSION_SQLEncode2(request("idCartRow"),10)
		sIDCart		= CONVERSION_SQLEncode2(request("IDCart"),10)
		
		' cartRow was not specified
		if pIdCartRow = "" then
			Call owMessage(LANG_DT( "REMOVE_ENTERITEM", "Please enter an item to delete." ), C_ERROR)
		Else
			' remove from cartRowOptions
			call DB_updateDatabase("DELETE FROM CartProductsOptions WHERE idCartRow = " & pIdCartRow)
	
			' remove from cartRow
			call DB_updateDatabase("DELETE FROM CartProducts WHERE idCartRow = " & pIdCartRow)

			response.redirect "owShowCart.asp"
		End If
		
	End Sub
	'************************************************************************************	
%>