<!--#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 sIDSupplier
	Dim sPrice, sImageUrl, sListPrice, sSKU, sListhidden, sActive, sWeight, dDateAdded
	
	sIDProduct				= CONVERSION_SQLEncode2(Request("idProduct"),10)
	bRefresh				= Trim(Request("bRefresh"))
	sSort					= Trim(Request("sSort"))
	sSearch					= Trim(Request("sSearch"))
	sSearchText				= Trim(Request("sSearchText"))
	sOWShisWeightType		= Trim(owCONFIG_ReturnConfigValue("sOWShisWeightType"))
	sOWShipDimensionType	= Trim(owCONFIG_ReturnConfigValue("sOWShipDimensionType"))
	
	If ( sIDProduct = "" ) Then sIDProduct = 0 End If

	sSQLText = "SELECT * FROM products WHERE idProduct=" & sIDProduct
	Call DB_getFromDatabase(sSQLText, rsStoreData, "")
	If ( NOT rsStoreData.EOF ) Then
		sIDProduct			= rsStoreData("idProduct")
		sIDSupplier			= rsStoreData("idSupplier")
		sDescription		= rsStoreData("description")
		sPrice				= rsStoreData("price")
		sListPrice			= rsStoreData("listPrice")
		sBToBPrice			= rsStoreData("bToBPrice")
		sCost				= rsStoreData("cost")
		sDetails			= rsStoreData("details")
		sImageUrl			= rsStoreData("imageUrl")
		sSmallImageUrl		= rsStoreData("smallImageUrl")
		sListhidden			= rsStoreData("listhidden")
		sHotDeal			= rsStoreData("hotDeal")
		sActive				= rsStoreData("active")
		sShowInHome			= rsStoreData("showInHome")
		sWeight				= rsStoreData("weight")
		sLength				= rsStoreData("length")
		sWidth 				= rsStoreData("width")
		sHeight 			= rsStoreData("height")
		sListPrice			= rsStoreData("listPrice")
		sSKU				= rsStoreData("sku")
		sFormQuantity		= rsStoreData("formQuantity")
		sFreeShipping		= CDbl(rsStoreData("freeShipping"))
		sSearchKeywords		= rsStoreData("searchKeywords")
		dDateAdded			= Trim(rsStoreData("dateAdded"))
		sFreeShipStartDate	= rsStoreData("FreeShipStartDate")
		sFreeShipEndDate	= rsStoreData("FreeShipEndDate")
		sFreeShipQty		= rsStoreData("FreeShipQty")
		sDigitalDownload	= rsStoreData("DigitalDownload")
		sAllowedDownloads	= rsStoreData("AllowedDownloads")
		sExpireDays			= rsStoreData("ExpireDays")
		sAllowReviews		= rsStoreData("AllowReviews")
		sModerateReviews	= rsStoreData("ModerateReviews")
		sNumRanking			= CDbl(rsStoreData("NumRanking"))
		sRanking			= CDbl(rsStoreData("Ranking"))
		sDistributorUnq		= CInt(rsStoreData("DistributorUnq"))
		sDeliveryTime		= CInt(rsStoreData("DeliveryTime"))
		sTaxExempt			= rsStoreData("TaxExempt")
		Call DB_closeRecordset(rsStoreData)

		if sLength="" or isNull(sLength) then sLength=0
		if sWidth=""  or isNull(sWidth)	 then sWidth=0
		if sHeight="" or isNull(sHeight) then sHeight=0
		if sFreeShipQty="" or isNull(sFreeShipQty) then sFreeShipQty=0
		
		If ( sOWShisWeightType = "" ) Or ( sOWShisWeightType = "LBS" ) Then
			sOWShisWeightType = "Pounds"
		Else
			sOWShisWeightType = "Kilograms"
		End If
		
		If ( sOWShipDimensionType = "" ) Or ( sOWShipDimensionType = "IN" ) Then
			sOWShipDimensionType = "Inches"
		Else
			sOWShipDimensionType = "Centimeters"
		End If
	
		' end second query
		if bOWChangeDecimalPoint then
			' change , with .
			sPrice		= replace(sPrice, ",",".")
			sListPrice	= replace(sListPrice, ",",".")
			sBToBPrice	= replace(sBToBPrice, ",",".")
			sCost		= replace(sCost, ",",".")
			sWeight		= replace(sWeight, ",",".")
			sLength		= replace(sLength, ",",".")
			sWidth		= replace(sWidth, ",",".")
			sHeight		= replace(sHeight, ",",".")
		end if
		
		sDetails = replace(sDetails, """","&quot;")
		With New RegExp           ' condense whitespace
			.Global = True
			.Pattern = "\s+"
			sDetails = .Replace(sDetails, " ")
		End With
		
		if pUseUnlimitedCategsAssignment=0 then
			sSQLText = "SELECT * FROM CatProdMap WHERE idProduct=" &sIDProduct
			Call DB_getFromDatabase(sSQLText, rsStoreData, "owModifyProductForm.asp") 
			categoryCounter=1
			While ( NOT rsStoreData.EOF )
				select case categoryCounter
					case 1
						pIdCategory1=rsStoreData("idCategory")
					case 2  
						pIdCategory2=rsStoreData("idCategory")
					case 3
						pIdCategory3=rsStoreData("idCategory")
				end select 
				categoryCounter=categoryCounter+1
				rsStoreData.movenext
			Wend
			Call DB_closeRecordset(rsStoreData)
		End If
	
		%>
		<script type="text/javascript" src="../Script/fValConfig.js"></script>
		<script type="text/javascript" src="../Script/fValidate.js"></script>
		<%If ( sActiveX ) Then%>
		<script language="JavaScript" src="../Script/AceEditor/yusasp_ace.js"></script>
		<script language="JavaScript" src="../Script/AceEditor/yusasp_color.js"></script>
		<%End If%>
		<script language=JavaScript src="../../owScriptLibrary/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
		
		<script language = "javascript">
	
			<%If ( bRefresh = "TRUE" ) Then%>
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=ModifyProduct&sMessage=<%=Server.URLEncode(LANG_DT( "CHANGES_SAVED", "** Changes saved **" ))%>"
			<%Else%>
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=ModifyProduct"
			<%End If%>
			parent.owBodyFooter.location="owBodyFooter.asp?sAction=Null"
			
		</script>
		
		<script>
	
			function LoadContent()
			{
				<%If ( sActiveX ) Then%>
				//STEP 5: Use putContent() method to to put the content from the hidden IFRAME 
				//into the editor.
				obj1.putContent("<%=Replace(sDetails, """", "\""")%>")
				<%End If%>
			}
		</script>
		
		<body onLoad = 'toForm(); LoadContent();' 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;
			}
			.owDisabledContainer {
				font-family: verdana, arial, helvetica, sans-serif;
				font-size: 10px;
				position: relative; left: 1px; top: 1px; color: #FFFFFF;
			}
			.owDisabledText {
				font-family: verdana, arial, helvetica, sans-serif;
				font-size: 10px;
				position: absolute; left: -1px; top: -1px; color: #BBBBBB;
			} 
		</style>
		
		<div id=overDiv style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></div>
		<form ENCTYPE="multipart/form-data" method="post" name="modifyproduct" action="owModifyProductExec.asp">
			<input type='hidden' name='sAction' value='ModifyProduct'>
			<input type="hidden" name="idProduct" value="<%=sIDProduct%>">
			<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 colspan=4 style='padding-bottom: 2px; padding-top: 12px;'>
						<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
							<tr>
								<td>
					            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
					            		<tr>
					            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><font size=+1 color=2A5CB2><%=LANG_DT( "PRODUCT_HEAD", "PRODUCT" )%></font></b></td>
					            			<td width=100% bgcolor=FFFFFF style='border-bottom: 1px solid C3DAF9;'><%=LANG_DT( "PROD_ADDED", "Added" )%>: <%=CONVERSION_FormatDate(dDateAdded, "S")%></td>
					             		</tr>
					            	</table>
					            </td>
							</tr>
							<tr bgcolor="#EAF1F9">
								<td>
					            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
					            		<tr>
											<td style='padding-bottom: 2px; padding-top: 6px;'>
												<%=LANG_DT( "PRODUCT_SKU", "SKU" )%><br>
												<%VALIDATE_textbox "sku", sSKU, 25, "textbox", "blank"%>
												&nbsp;
												<%=LANG_DT( "PROD_ITEMNUM", "Item #" )%>: <%=sIDProduct%>
											</td>
											<td>
												<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_SUPPLIER", "Supplier/Brand" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_SUPPLIER", "Supplier/Brand" )%></font></span>
												<br>
												<select name="idSupplier" class="owDisabled">
													<option value='0'><%=LANG_DT( "PRODUCT_NOSUPPLIERS", "No suppliers defined" )%></option>
												</select>
											</td>
											<td>
												<%=LANG_DT( "PRODUCT_DESC", "Description" )%><br>
												<%VALIDATE_textbox "description", sDescription, 50, "textbox", "blank"%>
											</td>
					             		</tr>
										<tr>
											<td colspan=3 style='padding-bottom: 2px; padding-top: 6px;'>
												<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
												<tr>
													<td>
										            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
										            		<tr>
										            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_STOCKTITLE", "STOCK INFORMATION" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_STOCKTITLE", "STOCK INFORMATION" )%></font></span></b></td>
										            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
										             		</tr>
										            	</table>
										            </td>
												</tr>
												<tr bgcolor="#EAF1F9">
													<td>
										            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
										            		<tr>
																<td width=20% style='padding-bottom: 2px; padding-top: 6px;'>
																	<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_STOCK", "Stock Level" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_STOCK", "Stock Level" )%></font></span>
																	<br>
																	<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																</td>
																<td width=20%>
																	<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_STOCKALERT", "Stock Level Alert" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_STOCKALERT", "Stock Level Alert" )%></font></span>
																	<br>
																	<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																</td>
																<td width=20%>
																	<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_STOCKREORDERCOST", "Reorder Cost" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_STOCKREORDERCOST", "Reorder Cost" )%></font></span>
																	<br>
																	<span class="owDisabledContainer"><%=sOWCurrencySymbol%><font color="#FFFFFF" class="owDisabledText"><%=sOWCurrencySymbol%></font></span>
																	<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																</td>
																<td width=20%>
																	<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_STOCKDAYS", "Restocking Days" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_STOCKDAYS", "Restocking Days" )%></font></span>
																	<br>
																	<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																</td>
																<td width=20%>
																	<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_STOCKMINODER", "Min. Stock Order" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_STOCKMINODER", "Min. Stock Order" )%></font></span>
																	<br>
																	<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																</td>
										             		</tr>
										            	</table>
										            </td>
												</tr>
											</table>
											</td>
										</tr>
					             		
										<tr>
											<td colspan=3 style='padding-bottom: 2px; padding-top: 6px;'>
												<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
													<tr>
														<td>
											            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
											            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_PRICING", "PRICING" )%></b></td>
											            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
													<tr bgcolor="#EAF1F9">
														<td>
											            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
																	<td width=25% style='padding-bottom: 2px; padding-top: 6px;'>
																		<%=LANG_DT( "PRODUCT_SELLINGPRICE", "Your Selling Price" )%><br>
																		<%=sOWCurrencySymbol%><%VALIDATE_textbox "price", sPrice, 10, "textbox", "decimalr"%>
																	</td>
																	<td width=25%>
																		<%=LANG_DT( "PRODUCT_MSRPPRICE", "MSRP Price" )%><br>
																		<%=sOWCurrencySymbol%><%VALIDATE_textbox "listPrice", sListPrice, 10, "textbox", "decimalr"%>
																	</td>
																	<td width=25%>
																		<%=LANG_DT( "PRODUCT_WHOLEPRICE", "Wholesale Price" )%><br>
																		<%=sOWCurrencySymbol%><%VALIDATE_textbox "bToBprice", sBToBPrice, 10, "textbox", "decimalr|bok"%>
																	</td>
																	<td width=25%>
																		<%=LANG_DT( "PRODUCT_COST", "Cost Price" )%><br>
																		<%=sOWCurrencySymbol%><%VALIDATE_textbox "cost", sCost, 10, "textbox", "decimalr|bok"%>
																	</td>
											             		</tr>
											             		<tr>
																	<td width=25% valign=top>
																		<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_TAXEXEMPT", "Tax Exempt?" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_TAXEXEMPT", "Tax Exempt?" )%></font></span><br>
																		<select name='sTaxExempt'  class='owDisabled'>
																			<option value='N'>No</option>
																		</select>
																	</td>
											             			<td colspan=3 style='padding-bottom: 2px; padding-top: 6px;'>
											             				<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_DEALERPRICING", "Dealer Pricing" )%>:<font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_DEALERPRICING", "Dealer Pricing" )%>:</font></span>
											             				<table border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
																			<tr>
																				<td><span class="owDisabledContainer">Level 1<font color="#FFFFFF" class="owDisabledText">Level 1</font></span>:</td>
																				<td>&nbsp;&nbsp;&nbsp;</td>
																				<td>
																					<input type='text' name='' value='' class='owDisabled' size=10 readonly>
																				</tD>
																			</tr>
																			<tr>
																				<td><span class="owDisabledContainer">Level 2<font color="#FFFFFF" class="owDisabledText">Level 2</font></span>:</td>
																				<td>&nbsp;&nbsp;&nbsp;</td>
																				<td>
																					<input type='text' name='' value='' class='owDisabled' size=10 readonly>
																				</tD>
																			</tr>
																			<tr>
																				<td><span class="owDisabledContainer">Level 3<font color="#FFFFFF" class="owDisabledText">Level 3</font></span>:</td>
																				<td>&nbsp;&nbsp;&nbsp;</td>
																				<td>
																					<input type='text' name='' value='' class='owDisabled' size=10 readonly>
																				</tD>
																			</tr>
																		</table>
											             			</td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
												</table>
											</td>
										</tr>
										
										<tr>
											<td colspan=3 style='padding-bottom: 2px; padding-top: 6px;'>
												<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
													<tr>
														<td>
											            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
											            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_DIMENSIONS", "SHIPPING INFORMATION" )%></b></td>
											            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
													<tr bgcolor="#EAF1F9">
														<td>
											            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
																	<td width=25%>
																		<%=Replace(LANG_DT( "PRODUCT_WEIGHT", "Weight (in 1:)" ), "1:", sOWShisWeightType)%><br>
																		<%VALIDATE_textbox "sweight", sWeight, 5, "textbox", "decimalr|1|3|0|2|bok"%>
																	</td>
																	<td width=25%>
																		<%=Replace(LANG_DT( "PRODUCT_LENGTH", "Length (in 1:)" ), "1:", sOWShipDimensionType)%><br>
																		<%VALIDATE_textbox "slength", sLength, 5, "textbox", "decimalr|1|3|0|2|bok"%>
																	</td>
																	<td width=25%>
																		<%=Replace(LANG_DT( "PRODUCT_WIDTH", "Width (in 1:)" ), "1:", sOWShipDimensionType)%><br>
																		<%VALIDATE_textbox "swidth", sWidth, 5, "textbox", "decimalr|0|2|0|2|bok"%>
																	</td>
																	<td width=25%>
																		<%=Replace(LANG_DT( "PRODUCT_DEPTH", "Depth (in 1:)" ), "1:", sOWShipDimensionType)%><br>
																		<%VALIDATE_textbox "sheight", sHeight, 5, "textbox", "decimalr|0|2|0|2|bok"%>
																	</td>
											             		</tr>
											            		<tr>
											            			<td colspan=4>
																		<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            					<tr>
											            						<td width=25%>
											            							<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_FREESHIPPING", "Free Shipping?" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_FREESHIPPING", "Free Shipping?" )%></font></span>
											            						</td>
											            						<td colspan=2>
											            							<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_FREESHIPDATERANGE", "Free Shipping Date Range" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_FREESHIPDATERANGE", "Free Shipping Date Range" )%></font></span>
											            						</td>
											            						<td width=25%>
											            							<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_FREESHIPQTY", "Quantity Required" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_FREESHIPQTY", "Quantity Required" )%></font></span>
											            						</td>
											            					</tr>
											            					<tr>
																				<td width=25%>
																					<select name='pFreeShipping' class='owDisabled'>
																						<option value='0'>No</option>
																					</select>
																				</td>
																				<td width=25%>
																					<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_FREESHIPDATERANGE_START", "Start" )%>:<font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_FREESHIPDATERANGE_START", "Start" )%>:</font></span>
																					 <input type='text' name='' value='' class='owDisabled' size=15 readonly>
																				</td>
																				<td width=25%>
																					<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_FREESHIPDATERANGE_End", "Expire" )%>:<font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_FREESHIPDATERANGE_End", "Expire" )%>:</font></span>
																					 <input type='text' name='' value='' class='owDisabled' size=15 readonly>
																				</td>
																				<td width=25%>
																					<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																				</td>
																			</tr>
																		</table>
																	</td>
											             		</tr>
											            		<tr>
																	<td width=50% colspan=2>
																		<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_DISTRIBUTOR", "Distributor (Drop-Shipping Location)" )%>:<font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_DISTRIBUTOR", "Distributor (Drop-Shipping Location)" )%>:</font></span>
																		<br>
																		<select name='sDistributorUnq' class='owDisabled'>
																			<option value='0'><%=LANG_DT( "PRODUCT_DISTRIBUTOR_NONE", "None" )%></option>
																		</select>
																	</td>
																	<td width=50% colspan=2>
																		<%=LANG_DT( "PRODUCT_DISTRIBUTOR_DELIVERYTIME", "Approx. Delivery Time (days)" )%>:<br>
																		<%VALIDATE_textbox "sDeliveryTime", sDeliveryTime, 5, "textbox", "number|bok"%>
																	</td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
												</table>
											</td>
										</tr>
					             		
					             		<tr>
					             			<td colspan=3>
								            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
								            		<tr>
								            			<td align=right style='border-top: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_ALLYES", "All YES" )%></b></td>
								            			<td style='border-top: 1px solid C3DAF9;'><input type='radio' name='sAllSettings' value='Y' onClick='form.listhidden.value="0"; form.hotDeal.value="-1"; form.showInHome.value="-1"; form.active.value="-1";'></td>
								            			<td align=right style='border-top: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_ALLNO", "All NO" )%></b></td>
								            			<td style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;'><input type='radio' name='sAllSettings' value='N' onClick='form.listhidden.value="-1"; form.hotDeal.value="0"; form.showInHome.value="0"; form.active.value="0";'></td>
								            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
								             		</tr>
								            	</table>
								            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
								            		<tr>
														<td width=20% style='padding-bottom: 2px; padding-top: 6px;'>
															<%=LANG_DT( "PRODUCT_ACTIVEQUES2", "Product Active?" )%><br>
															<select name=active id=active size=1>
																<option value="0"  <%if sActive=0 then response.write "selected" end if%>><%=LANG_DT( "NO", "No" )%></option>
																<option value="-1" <%if sActive=-1 then response.write "selected" end if%>><%=LANG_DT( "YES", "Yes" )%></option>
															</select>
														</td>
														<td width=20%>
															<%=LANG_DT( "PRODUCT_HOTDEAL", "Hot deal?" )%><br>
															<select name=hotDeal id=hotDeal size=1>
																<option value="0"  <%if sHotDeal=0 then response.write "selected" end if%>><%=LANG_DT( "NO", "No" )%></option>
																<option value="-1" <%if sHotDeal=-1 then response.write "selected" end if%>><%=LANG_DT( "YES", "Yes" )%></option>
															</select>
														</td>
				
														<td width=20%>
															<%=LANG_DT( "PRODUCT_SHOWINHOME", "Show on Homepage?" )%><br>
															<select name=showInHome id=showInHome size=1>
																<option value="0"  <%if sShowInHome=0 then response.write "selected" end if%>><%=LANG_DT( "NO", "No" )%></option>
																<option value="-1" <%if sShowInHome=-1 then response.write "selected" end if%>><%=LANG_DT( "YES", "Yes" )%></option>
															</select>
														</td>
														<td width=20%>
															<%=LANG_DT( "PRODUCT_HIDE", "Public View?" )%><br>
															<select name=listhidden id=listhidden size=1>
																<option value="0"  <%if sListhidden=0 then response.write "selected" end if%>><%=LANG_DT( "ACTIVE", "Active" )%></option>
																<option value="-1" <%if sListhidden=-1 then response.write "selected" end if%>><%=LANG_DT( "INACTIVE", "Inactive" )%></option>
															</select>
														</td>
														<td width=20%>
															<%=LANG_DT( "PRODUCT_QTY", "Form Quantity" )%><br>
															<%VALIDATE_textbox "formQuantity", sFormQuantity, 5, "textbox", "number|bok"%>
														</td>
								             		</tr>
								            	</table>
					             			</td>
					             		</tr>
					             		
										<tr>
					             			<td colspan=3>
								            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
							            		<tr>
							            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><span class="owDisabledContainer"><%=LANG_DT( "PROD_DETAIL_REVIEWHEAD", "PRODUCT REVIEWS" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PROD_DETAIL_REVIEWHEAD", "PRODUCT REVIEWS" )%></font></span></b></td>
							            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
							             		</tr>
								            	</table>
								            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
								            		<tr>
								            			<td>
								            				<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
								            					<tr>
								            						<td width=20%>
								            							<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_ALLOWREV", "Allow Reviews?" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_ALLOWREV", "Allow Reviews?" )%></font></span>
								            						</td>
								            						<td width=20%>
								            							<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_MODEREV", "Moderate Reviews?" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_MODEREV", "Moderate Reviews?" )%></font></span>
								            						</td>
								            						<td colspan=3>
								            							<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_RANKINFO", "Product Rank/Voting Information" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_RANKINFO", "Product Rank/Voting Information" )%></font></span>
								            						</td>
								            					</tr>
								            					<tr>
																	<td width=20%>
																		<select name=sAllowReviews size=1 class='owDisabled'>
																			<option value="N"><%=LANG_DT( "NO", "No" )%></option>
																		</select>
																	</td>
																	<td width=20%>
																		<select name=sModerateReviews size=1 class='owDisabled'>
																			<option value="N"><%=LANG_DT( "NO", "No" )%></option>
																		</select>
																	</td>
																	<td width=20%>
																		<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_NUMVOTERS", "# Voters" )%>: <font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_NUMVOTERS", "# Voters" )%>: </font></span>
																		<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																	</td>
																	<td width=20%>
																		<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_SUMVOTES", "Summation" )%>: <font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_SUMVOTES", "Summation" )%>: </font></span>
																		<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																	</td>
																	<td width=20%>
																		<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_RANK", "Rank (1-10)" )%>: 0<font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_RANK", "Rank (1-10)" )%>: 0</font></span>
																	</td>
																</tr>
															</table>
														</td>
								             		</tr>
								            	</table>
					             			</td>
					             		</tr>
					             		
					             		<tr>
					             			<td colspan=3>
												<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
													<tr>
														<td>
											            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
											            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_CATS", "CATEGORIES" )%></b></td>
											            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
													<tr bgcolor="#EAF1F9">
														<td>
											            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
																	<td width=25% style='padding-bottom: 2px; padding-top: 6px;'>
																		<%=LANG_DT( "PRODUCT_CAT1", "Category 1" )%><br> 
																		<select name="idCategory1">
																			<%Call STRUCTURE_RecurseCategories(0, iLevel, "SELECT", pidCategory1)%>
																		</select>
																		<input type='hidden' name='OriginalidCategory1' value='<%=pidCategory1%>'>
																	</td>
																	<td width=25%>
																		<%=LANG_DT( "PRODUCT_CAT2", "Category 2" )%><br>
																		<select name="idCategory2">  
																			<%Call STRUCTURE_RecurseCategories(0, iLevel, "SELECT", pidCategory2)%>
																		</select>
																		<input type='hidden' name='OriginalidCategory2' value='<%=pidCategory2%>'>
																	</td>
																	<td width=25%>
																		<%=LANG_DT( "PRODUCT_CAT3", "Category 3" )%><br>
																		<select name="idCategory3">  
																			<%Call STRUCTURE_RecurseCategories(0, iLevel, "SELECT", pidCategory3)%>
																		</select>
																		<input type='hidden' name='OriginalidCategory3' value='<%=pidCategory3%>'>
																	</td>
																	<td width=25%></td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
												</table>
					             			</td>
					             		</tr>
					             		
										<%
										iCount = 0
										sSQLText = "SELECT * FROM OptionsGroups_Products WHERE idproduct = " & sIDProduct
										Call DB_getFromDatabase(sSQLText, rsStoreData, "owAddProduct.asp")
										If ( NOT rsStoreData.EOF ) Then
											ReDim aIdOptionGroup(rsStoreData.RecordCount)
											While ( NOT rsStoreData.EOF )
												aIdOptionGroup(iCount) = Trim(rsStoreData("idoptiongroup"))
												iCount = iCount + 1
												rsStoreData.MoveNext
											Wend
										End If
										Call DB_closeRecordset(rsStoreData)
										iCount = iCount - 1
										iCurOGNum = 0
										%>
										<tr>
											<td colspan=3 style='padding-bottom: 2px; padding-top: 6px;'>
												<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
													<tr>
														<td>
											            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
											            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_OPTIONS", "PRODUCT OPTIONS" )%></b></td>
											            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
											             		</tr>
											            	</table>
											            </td>
													</tr>
													<tr bgcolor="#EAF1F9">
														<td>
											            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
											            		<tr>
																	<%
																	sSQLText = "SELECT * FROM optionsGroups WHERE idOptionGroup > 1 ORDER BY optionGroupDesc"
																	Call DB_getFromDatabase(sSQLText, rsStoreData, "owAddProduct.asp")
																	If ( NOT rsStoreData.EOF ) Then
																		While ( NOT rsStoreData.EOF )
											
																			sTempIdOptionGroup	= rsStoreData("idoptiongroup")
																			sTempName			= rsStoreData("OptionGroupDesc")
																			
																			bBeenAdded = FALSE
																			' now see if this idoptiongroup is in the aIdOptionGroup array (meaning it's already been added to this product)
																			For x = 0 to iCount
																				If ( aIdOptionGroup(x) = Trim(sTempIdOptionGroup) ) Then
																					bBeenAdded = TRUE
																					x = iCount + 1
																				End If
																			Next
																			If ( bBeenAdded ) Then
																				%>
																				<td width=25%>
																					<%=sTempName%><br>
																					<input type='checkbox' name='sIDOptionGroup' value='<%=sTempIdOptionGroup%>' checked>
																				</td>
																				<%
																			Else
																				%>
																				<td width=25%>
																					<%=sTempName%><br>
																					<input type='checkbox' name='sIDOptionGroup' value='<%=sTempIdOptionGroup%>'>
																				</td>
																				<%
																			End If
																			iCurOGNum = iCurOGNum + 1
																			If ( iCurOGNum = 4 ) Then
																				iCurOGNum = 0
																				Response.Write "</tr><tr>"
																			End If
																			rsStoreData.MoveNext
																		Wend
																	End If
																	Call DB_closeRecordset(rsStoreData)
																	%>
											             		</tr>
											            	</table>
											            </td>
													</tr>
												</table>
											</td>
										</tr>
	
					             		<tr>
					             			<td colspan=3>
					             				<%=LANG_DT( "PRODUCT_LONGDESC", "Long Description" )%><bR>
					             				<%If ( sActiveX ) Then%>
												<script>
												var obj1 = new ACEditor("obj1")
												obj1.width = "100%" //set editor dimension
												obj1.height = 300
												obj1.useStyle = false //here is how to enable/disable toolbar buttons
												//obj1.useAsset = false
												//obj1.useImage = false
												obj1.usePageProperties = false
												obj1.ImagePageURL = "default_image.asp"
												obj1.AssetPageURL = "default_Asset.asp"
												obj1.base = "/owManager/ProductList/" 
												obj1.baseEditor = "/owManager/ProductList/" 
												obj1.RUN() //run & show the editor
												</script>
												<input type=hidden name="details" ID=details>
												<%Else%>
												<textarea name="details" rows="5" cols="80"><%=sDetails%></textarea>
												<%End If%>
												<br>
					             				<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_KEYWORDS", "Related Product matching keywords" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_KEYWORDS", "Related Product matching keywords" )%></font></span><br>
					             				<input type='text' name='' value='' class='owDisabled' size=50 readonly>
					             			</td>
					             		</tr>
					            	</table>
					            </td>
							</tr>
						</table>
					</td>
				</tr>
				
				<tr>
					<td colspan=4>
						<tr>
							<td colspan=4 style='padding-bottom: 2px; padding-top: 6px;'>
								<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
									<tr>
										<td>
							            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
							            		<tr>
							            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><%=LANG_DT( "PRODUCT_FILEMANAGE", "FILE MANAGEMENT" )%></b></td>
							            			<td bgcolor=FFFFFF width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
							             		</tr>
							            	</table>
							            </td>
									</tr>
									<tr bgcolor="#EAF1F9">
										<td>
							            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
							            		<tr>
							            			<td colspan=4>
							            				Depending on the size of your files, this may take <u>several minutes</u>.
							            			</td>
							            		</tr>
							            		<tr>
													<td colspan=4 style='padding-bottom: 2px; padding-top: 6px;'>
														<table width=100% border="0" cellpadding="0" cellspacing="0" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#FFFFFF">
															<tr>
																<td>
													            	<table border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
													            		<tr>
													            			<td align=right style='border-top: 1px solid C3DAF9; border-right: 1px solid C3DAF9;' nowrap><b><span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_DGHEAD", "Digital Goods" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_DGHEAD", "Digital Goods" )%></font></span></b></td>
													            			<td width=100% style='border-bottom: 1px solid C3DAF9;'>&nbsp;</td>
													             		</tr>
													            	</table>
													            </td>
															</tr>
															<tr bgcolor="#EAF1F9">
																<td>
													            	<table width=100% border="0" cellpadding="5" cellspacing="0" style="border-left: 1px solid C3DAF9; border-right: 1px solid C3DAF9; border-bottom: 1px solid C3DAF9; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#EAF1F9">
													            		<tr>
																			<td width=33% style='padding-bottom: 2px; padding-top: 6px;'>
																				<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_DGFILE", "File" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_DGFILE", "File" )%></font></span>
																				<br> 
																				<input type='text' name='' value='' class='owDisabled' size=30 readonly>
																			</td>
																			<td width=33%>
																				<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_DDNUMALLOWEDDL", "Allowed Number of Downloads" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_DDNUMALLOWEDDL", "Allowed Number of Downloads" )%></font></span>
																				<br>
																				<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																			</td>
																			<td width=33%>
																				
																				<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_DDEXPIREDAYS", "Days Before Expires" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_DDEXPIREDAYS", "Days Before Expires" )%></font></span>
																				<br>
																				<input type='text' name='' value='' class='owDisabled' size=5 readonly>
																			</td>
													             		</tr>
													            	</table>
													            </td>
															</tr>
														</table>
													</td>
							             		</tr>
												<%If ( NOT bOWAdvancedImages ) Or ( sOWImageComponent = "" ) Then%>
												<tr>
													<td valign=top colspan=2>
														<%=LANG_DT( "PRODUCT_IMAGE", "Image" )%><br>
														<input TYPE='FILE' NAME='imageUrl' SIZE=30 alt='file|jpg,gif,png|0|bok'>
														<%If ( Trim(sImageUrl) <> "" ) Then%>
														<table border="0" cellpadding="0" cellspacing="0" width="100%" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080">
															<tr>
																<td>
																	<%=LANG_DT( "PRODUCT_DELIMAGE", "Delete Current Image?" )%>
																	<input type='checkbox' name='sDelCurImage' value='Y'>
																	<input type='hidden' name='sOriginalImageName' value='<%=Server.HTMLEncode(sImageUrl)%>'>
																</td>
															</tr>
															<tr>
																<td colspan=2>
																	<a href='javascript:void(0);' onMouseOver='return overlib("<img src=\"../../<%=Server.HTMLEncode(sOWImagesDir & "/" & sImageUrl)%>\">");' onMouseOut=nd();><img src="../../<%=Server.HTMLEncode(sOWImagesDir & "/" & sImageUrl)%>" width=150 height=150 border=0></a>
																</td>
															</tr>
														</table>
														<%End If%>
													</td>
													<td valign=top colspan=2>
														<%=LANG_DT( "PRODUCT_THUMB", "Thumbnail" )%><br>
														<input TYPE='FILE' NAME='smallImageUrl' SIZE=30 alt='file|jpg,gif,png|0|bok'>
														<%If ( Trim(sSmallImageUrl) <> "" ) Then%>
														<table border="0" cellpadding="0" cellspacing="0" width="100%" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080">
															<tr>
																<td>
																	<%=LANG_DT( "PRODUCT_DELIMAGE", "Delete Current Image?" )%>
																	<input type='checkbox' name='sDelCurImageSmall' value='Y'>
																	<input type='hidden' name='sOriginalImageNameSmall' value='<%=Server.HTMLEncode(sSmallImageUrl)%>'>
																</td>
															</tr>
															<tr>
																<td colspan=2>
																	<img src="../../<%=Server.HTMLEncode(sOWImagesDir & "/small/" & sSmallImageUrl)%>">
																</td>
															</tr>
														</table>
														<%End If%>
													</td>
												</tr>
												<%Else%>
												<tr>
													<td width=50% colspan=4 style='padding-bottom: 2px; padding-top: 6px;'>
														<%=LANG_DT( "PRODUCT_IMAGE", "Image" )%>
													</td>
												</tr>
												<tr>
													<td valign=top colspan=4>
														<input TYPE='FILE' NAME='imageUrl' SIZE=30 alt='file|jpg,gif,png|0|bok'>
														<%If ( Trim(sImageUrl) <> "" ) Then%>
														<table border="0" cellpadding="0" cellspacing="0" width="100%" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080">
															<tr>
																<td>
																	<%=LANG_DT( "PRODUCT_DELIMAGE", "Delete Current Image?" )%>
																	<input type='checkbox' name='sDelCurImage' value='Y'>
																	<input type='hidden' name='sOriginalImageName' value='<%=Server.HTMLEncode(sImageUrl)%>'>
																</td>
															</tr>
															<tr>
																<td colspan=2>
																	<a href='javascript:void(0);' onMouseOver='return overlib("<img src=\"../../<%=Server.HTMLEncode(sOWImagesDir & "/" & sImageUrl)%>\">");' onMouseOut=nd();><img src="../../<%=Server.HTMLEncode(sOWImagesDir & "/" & sImageUrl)%>" width=150 border=0></a>
																</td>
															</tr>
														</table>
														<%End If%>
													</td>
												</tr>
												<tr>
													<td colspan=4>
														<span class="owDisabledContainer"><%=LANG_DT( "PRODUCT_ALTIMAGEHEAD", "Alternate Images" )%><font color="#FFFFFF" class="owDisabledText"><%=LANG_DT( "PRODUCT_ALTIMAGEHEAD", "Alternate Images" )%></font></span><br>
														<input type='text' name='' value='' class='owDisabled' size=30 readonly>
													</td>
												</tr>
												<%End If%>
							            	</table>
							            </td>
									</tr>
								</table>
							</td>
						</tr>
					</td>
				</tR>
			</table>
		</form>
		<form method='post' name='delproduct' action='owListProducts.asp'>
			<input type='hidden' name='sDelete<%=sIDProduct%>' value=''>
			<input type='hidden' name='sAction' value='Delete'>
			<input type='hidden' name='sSort' value='<%=sSort%>'>
		</form>
	<%
	Else
		Call DB_closeRecordset(rsStoreData)
		%>
		<script language = "javascript">
	
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=ModifyProduct&sMessage=<%=Server.URLEncode(LANG_DT( "PRODUCT_SPECIFYID", "** Missing Product! **" ))%>"
			location="owModifyProductForm.asp?sSort=<%=sSort%>&sSearch=<%=sSearch%>&sSearchText=<%=sSearchText%>&idProduct=<%=sIDProduct%>";
			
		</script>
		<%
	End If
	%>
<!--#include file="../footer.asp"-->