<!--#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/											*
	'*																					*
	'************************************************************************************

	sSort				= Trim(Request("sSort"))
	sSearch				= Trim(Request("sSearch"))
	sSearchText			= Trim(Request("sSearchText"))
	pOptionDescrip		= CONVERSION_SQLEncode2(SQLEncode(Request("optionDescrip")),150)
	pPriceToAdd			= CONVERSION_SQLEncode2(Request("priceToAdd"),20)
	pWeight				= CONVERSION_SQLEncode2(Request("weight"),20)
	pIdOption			= CONVERSION_SQLEncode2(Request("IdOption"),10)
	
	If ( NOT bOWBackOfficeDemoMode ) Then	' just do a cursory check in case hackers try to replicate the forms on their computers (return no error)
		Call DB_updateDatabase("UPDATE options SET optionDescrip = '" &poptionDescrip& "', priceToAdd = " &ppriceToAdd& ", weight=" &pWeight& " WHERE idOption = "&pIdOption)
	End If
	%>
	<script language = "javascript">
		location = "owModifyOptionsForm.asp?bRefresh=TRUE&sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>&IdOption=<%=pIdOption%>";
	</script>