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

	sCountryCode		= CONVERSION_SQLEncode2(Request("sCountryCode"),3)
	sCountryName		= CONVERSION_SQLEncode2(Request("sCountryName"),150)
	sSort				= Trim(Request("sSort"))
	sSearchText			= Trim(Request("sSearchText"))
	sSearch				= Trim(Request("sSearch"))

	sSQLText = "INSERT INTO countryCodes (CountryName, CountryCode) VALUES ('" & sCountryName & "', '" & sCountryCode & "')"
	Call DB_updateDatabase(sSQLText)
	%>
	<script language = "javascript">
		parent.owBodyTopNav.location="owBodyTopNav.asp?sMessage=<%=Server.URLEncode(LANG_DT( "COUNTRIES_ADDEDOK", "** Country Added **" ))%>";
		location="owListCountries.asp?sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>&CountryCode=<%=sCountryCode%>";
	</script>