<!--#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 arrCategories, arrCategoriesIndex, pIdCategoryChild
	ReDim arrCategories(300,2)
	
	Call Main()
	

	'************************************************************************************
	'*																					*
	'*																					*
	'*																					*
	'************************************************************************************
	Sub Main()
	
		sOWShipWeightType		= Trim(owCONFIG_ReturnConfigValue("sOWShipWeightType"))
		sOWShipDimensionType	= Trim(owCONFIG_ReturnConfigValue("sOWShipDimensionType"))
		
		If ( sOWShipWeightType = "" ) Or ( sOWShipWeightType = "LBS" ) Then
			sOWShipWeightType = "Pounds"
		Else
			sOWShipWeightType = "Kilograms"
		End If
		
		If ( sOWShipDimensionType = "" ) Or ( sOWShipDimensionType = "IN" ) Then
			sOWShipDimensionType = "Inches"
		Else
			sOWShipDimensionType = "Centimeters"
		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">
	
			parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=AddProduct"
			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;
			}
			.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>
		
		<form ENCTYPE="multipart/form-data" method="post" name="addproduct" action="owAddProductExec.asp">
			<input type='hidden' name='sAction' value='addproduct' alt=''>
			<input type='hidden' name='sSort' value='<%=sSort%>' alt=''>
			<input type='hidden' name='sSearchText' value='<%=sSearchText%>' alt=''>
			<input type='hidden' name='sSearch' value='<%=sSearch%>' alt=''>
		<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;'></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", "", 25, "textbox", "blank"%>
										</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", "", 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", "", 10, "textbox", "decimalr"%>
																</td>
																<td width=25%>
																	<%=LANG_DT( "PRODUCT_MSRPPRICE", "MSRP Price" )%><br>
																	<%=sOWCurrencySymbol%><%VALIDATE_textbox "listPrice", "", 10, "textbox", "decimalr"%>
																</td>
																<td width=25%>
																	<%=LANG_DT( "PRODUCT_WHOLEPRICE", "Wholesale Price" )%><br>
																	<%=sOWCurrencySymbol%><%VALIDATE_textbox "bToBprice", "", 10, "textbox", "decimalr|bok"%>
																</td>
																<td width=25%>
																	<%=LANG_DT( "PRODUCT_COST", "Cost Price" )%><br>
																	<%=sOWCurrencySymbol%><%VALIDATE_textbox "cost", "", 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:", sOWShipWeightType)%><br>
																	<%VALIDATE_textbox "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", "", 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", "", 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", "", 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", "0", 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_ACTIVEQUEST2", "Product Active?" )%><br>
														<select name=active id=active size=1>
															<option value="0"><%=LANG_DT( "NO", "No" )%></option>
															<option value="-1"><%=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"><%=LANG_DT( "NO", "No" )%></option>
															<option value="-1"><%=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"><%=LANG_DT( "NO", "No" )%></option>
															<option value="-1"><%=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"><%=LANG_DT( "ACTIVE", "Active" )%></option>
															<option value="-1"><%=LANG_DT( "INACTIVE", "Inactive" )%></option>
														</select>
													</td>
													<td width=20%>
														<%=LANG_DT( "PRODUCT_QTY", "Form Quantity" )%><br>
														<%VALIDATE_textbox "formQuantity", "", 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", -1)%>
																	</select>
																</td>
																<td width=25%>
																	<%=LANG_DT( "PRODUCT_CAT2", "Category 2" )%><br>
																	<select name="idCategory2">  
																		<%Call STRUCTURE_RecurseCategories(0, iLevel, "SELECT", -1)%>
																	</select>
																</td>
																<td width=25%>
																	<%=LANG_DT( "PRODUCT_CAT3", "Category 3" )%><br>
																	<select name="idCategory3">  
																		<%Call STRUCTURE_RecurseCategories(0, iLevel, "SELECT", -1)%>
																	</select>
																</td>
																<td width=25%></td>
										             		</tr>
										            	</table>
										            </td>
												</tr>
											</table>
				             			</td>
				             		</tr>
				             		
									<%
									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")
																		%>
																		<td width=25%>
																			<%=sTempName%><br>
																			<input type='checkbox' name='sIDOptionGroup' value='<%=sTempIdOptionGroup%>'>
																		</td>
																		<%
																		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"></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 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'>
												</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'>
												</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'>
												</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>
		<!--#include file="../footer.asp"-->
		<%
	End Sub
	'************************************************************************************
%>