<!--#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/											*
	'*																					*
	'************************************************************************************
	
	pIdopTion		= CONVERSION_SQLEncode2(request.form("idopTion"),10)
	pIdOptionGroup	= CONVERSION_SQLEncode2(request.form("idOptionGroup"),10)

	if pIdopTion="" or pIdOptionGroup="" then
		sMessage = LANG_DT( "OPTIONS_MISSINGID", "** Missing Option ID **" )
	Else
		sSQLText = "INSERT INTO Options_OptionsGroups (idOptionGroup, idopTion) VALUES ("&pIdOptionGroup&","&pIdopTion&")"
		Call DB_updateDatabase(sSQLText)
		sMessage = LANG_DT( "OPTIONS_ASSIGNED", "** Option Assigned to Option Group **" )
	end if
	%>
	<script language = "javascript">
		parent.owBodyTopNav.location="owBodyTopNav.asp?sMessage=<%=Server.URLEncode(sMessage)%>";
		location="owListCurrentGroupAssignments.asp?idOptionGroup=<%=pidOptionGroup%>&sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>";
	</script>