<!--#include file="../../owFunctions/I_GeneralFunctions.asp"-->
<!--#include file="../header.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/											*
	'*																					*
	'************************************************************************************

	dim sSort, bRefresh, sSearch, sSearchText
	Dim sOptionGroupName
	
	pIdOption	= CONVERSION_SQLEncode2(request("idOption"),10)
	bRefresh	= Trim(Request("bRefresh"))
	sSort		= Trim(Request("sSort"))
	sSearch		= Trim(Request("sSearch"))
	sSearchText	= Trim(Request("sSearchText"))

	sSQLText = "SELECT * FROM options WHERE idOption = " & pIdOption
	Call DB_getFromDatabase(sSQLText, rsStoreData, "")
	If ( NOT rsStoreData.EOF ) Then
		pOptionDescrip 	= rsStoreData("optionDescrip")
		pPriceToAdd		= rsStoreData("priceToAdd")
		pWeight			= rsStoreData("weight")
		Call DB_closeRecordset(rsStoreData)
		%>
		<script type="text/javascript" src="../Script/fValConfig.js"></script>
		<script type="text/javascript" src="../Script/fValidate.js"></script>
		
		<script language = "javascript">
	
			<%If ( bRefresh = "TRUE" ) Then%>
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=ModifyOption&sMessage=<%=Server.URLEncode(LANG_DT( "CHANGES_SAVED", "** Changes saved **" ))%>"
			<%Else%>
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=ModifyOption"
			<%End If%>
			parent.owBodyFooter.location="owBodyFooter.asp?sAction=Null"
			
		</script>
		<body onLoad = 'toForm()' style="font-family: Arial; font-size: 11px;" topmargin="0" leftmargin="0" bgcolor=C3DAF9>
		
		<style>
			input.owDisabled, select.owDisabled, textarea.owDisabled {
				border: 2px inset #FFFFFF;
				background-color: #BBBBBB;
			}
			.owDisabledContainerW {
				font-family: verdana, arial, helvetica, sans-serif;
				font-size: 10px;
				position: relative; left: 1px; top: 1px; color: #CCCCCC;
			}
			.owDisabledTextW {
				font-family: verdana, arial, helvetica, sans-serif;
				font-size: 10px;
				position: absolute; left: -1px; top: -1px; color: #AAAAAA;
			} 
		</style>
		
		<form method="post" name="ModifyOption" action='owModifyOptionExec.asp'>
			<input type='hidden' name='sAction' value='ModifyOption'>
			<input type="hidden" name="idOption" value="<%=pIdOption%>">
			<input type='hidden' name='sSort' value='<%=sSort%>'>
			<input type='hidden' name='sSearchText' value='<%=sSearchText%>'>
			<input type='hidden' name='sSearch' value='<%=sSearch%>'>
			<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding:5px; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#ffffff"><tr><td>
			<table border="0" cellpadding="0" cellspacing="0" width="100%" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#ffffff">
			
				<tr>
					<td style='padding-top: 5px;' width=33%>
						<%=LANG_DT( "OPTION_DESC", "Option Description" )%>
					</td>
					<td width=33%>
						<%=LANG_DT( "OPTION_ADDITIONALPRICE", "Aditional Price" )%>
					</td>
					<td width=33%>
						<span class="owDisabledContainerW"><%=LANG_DT( "OPTION_ADDITIONALWEIGHT", "Additional Weight" )%><font color="#FFFFFF" class="owDisabledTextW"><%=LANG_DT( "OPTION_ADDITIONALWEIGHT", "Additional Weight" )%></font></span>
					</td>
				</tr>
				<tr>
					<td valign=top>
						<%VALIDATE_textbox "optionDescrip", pOptionDescrip, 25, "textbox", "blank"%>
					</td>
					<td valign=top>
						<%VALIDATE_textbox "priceToAdd", pPriceToAdd, 25, "textbox", "money|,.|bok"%>
					</td>
					<td valign=top>
						<input type='text' name='' value='' class='owDisabled' size=25 readonly>
					</td>
				</tr>
			</table>
			</tr></td></table>
	<%
	Else
		Call DB_closeRecordset(rsStoreData)
		%>
		<script language = "javascript">
	
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=ModifyOption&sMessage=<%=Server.URLEncode(LANG_DT( "OPTION_MISSING", "** Missing Option **" ))%>"
			location="owListOptionsGroup.asp?sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>&idOptionGroup=<%=pidOptionGroup%>";
			
		</script>
		<%
	End If
	
	%>      
<!--#include file="../footer.asp"-->