<!--#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"))
	sSearchText	= Trim(Request("sSearchText"))
	sSearch		= Trim(Request("sSearch"))

	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("INSERT INTO optionsGroups (optionGroupDesc, Type) VALUES ('" & CONVERSION_SQLEncode2(Request("optionGroupDesc"),150) & "', '" & CONVERSION_SQLEncode2(Request("sType"),20) & "')")
	End If

	%>
	<script language = "javascript">
		parent.owBodyTopNav.location="owBodyTopNav.asp?sMessage=<%=Server.URLEncode(LANG_DT( "OPTIONS_GROUPCREATED", "** Option Group Created **" ))%>";
		location="owListOptionsGroup.asp?sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>";
	</script>