<!--#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"))
	sOptionGroupName		= CONVERSION_SQLEncode2(request("sOptionGroupName"),150)
	idOptionGroup			= Trim(Request("idOptionGroup"))
	sType					= CONVERSION_SQLEncode2(request("sType"),20)
	
	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 OptionsGroups SET Type = '" & sType & "', OptionGroupDesc = '" & SQLEncode(sOptionGroupName) & "' WHERE idOptionGroup = " & idOptionGroup)
	End If
	%>
	<script language = "javascript">
		location="owModifyOptionGroups.asp?bRefresh=TRUE&sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>&idOptionGroup=<%=idOptionGroup%>";
	</script>