<!--#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 sMessage, sPage
	sMessage	= Trim(Request("sMessage"))
	sPage		= Trim(Request("sPage"))
	
	If ( sPage = "ListReviews" ) Then
		sURL = "owListReviews.asp?sSearch=FirstChar&sSearchText="
	Else
		sURL = "owListProducts.asp?sSearch=FirstChar&sSearchText="
	End If
	%>

	<script type="text/javascript" src="../Script/fValConfig.js"></script>
	<script type="text/javascript" src="../Script/fValidate.js"></script>
	
	<body style="font-family: Arial; font-size: 11px" topmargin="0" leftmargin="0" bgcolor=C3DAF9>
	<div id="tablediv" style="position: absolute; top: 0px; height: 100%; width:100%">
		<table border="0" cellpadding="0" cellspacing="0" style="font-size: 11px">
			<tr bgcolor="#C3DAF9">
				<td width=9 height="25"><img src='../images/bev_left.gif'></td>
				<td height="25" style="BORDER-RIGHT: #aaaaaa 0px solid; BORDER-LEFT: #ffffff 0px solid; " bgcolor="#C3DAF9" background='../images/bev_center.gif'>
					<%If ( bOWBackOfficeDemoMode ) Then%>
					<%If ( sPage = "" ) Then%>
					<span	onmouseover="delproduct.src='../images/delproduct.gif'; window.status = '<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
							onmouseout="delproduct.src='../images/delproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
							onclick="alert('<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>')" 
							style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">
							<img name=delproduct  border="0" src="../images/delproduct_bw.gif" align="absmiddle">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">&nbsp;<%=LANG_DT( "DELETE", "Delete" )%>&nbsp;
					</span>
					<%ElseIf ( sPage = "ModifyProduct" ) Then%>
					<span	onmouseover="delproduct.src='../images/delproduct.gif'; window.status = '<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
							onmouseout="delproduct.src='../images/delproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
							onclick="alert('<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>')" 
							style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">
							<img name=delproduct  border="0" src="../images/delproduct_bw.gif" align="absmiddle">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">&nbsp;<%=LANG_DT( "DELETE", "Delete" )%>&nbsp;
					</span>
					<%End If%>
					<%Else%>
					<%If ( sPage = "" ) Then%>
					<span	onmouseover="delproduct.src='../images/delproduct.gif'; window.status = '<%=LANG_DT( "PRODUCT_REMOVE", "Remove selected product(s)." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
							onmouseout="delproduct.src='../images/delproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
							onclick="if (confirm('<%=LANG_DT( "PRODUCT_DELCONFIRM", "Are you sure you wish to delete these product(s)?" )%>')) {parent.owBody.ProductList.sAction.value='Delete'; parent.owBody.ProductList.submit();};" 
							style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">
							<img name=delproduct  border="0" src="../images/delproduct_bw.gif" align="absmiddle">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">&nbsp;<%=LANG_DT( "DELETE", "Delete" )%>&nbsp;
					</span>
					<%ElseIf ( sPage = "ModifyProduct" ) Then%>
					<span	onmouseover="delproduct.src='../images/delproduct.gif'; window.status = '<%=LANG_DT( "PRODUCT_REMOVE2", "Remove this product." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
							onmouseout="delproduct.src='../images/delproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
							onclick="if (confirm('<%=LANG_DT( "PRODUCT_DELCONFIRM2", "Are you sure you wish to delete this product?" )%>')) {parent.owBody.delproduct.sAction.value='Delete'; parent.owBody.delproduct.submit();};" 
							style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">
							<img name=delproduct  border="0" src="../images/delproduct_bw.gif" align="absmiddle">
							<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">&nbsp;<%=LANG_DT( "DELETE", "Delete" )%>&nbsp;
					</span>
					<%End If%>
					<%End If%>
					
					
					&nbsp;
					
					<a href="<%=sURL%>" class='BoxedLinks' target='owBody'>&nbsp;<%=LANG_DT( "ALL", "All" )%>&nbsp;&nbsp;</a>	
					<a href="<%=sURL%>a" class='BoxedLinks' target='owBody'>&nbsp;A&nbsp;</a>	
					<a href="<%=sURL%>b" class='BoxedLinks' target='owBody'>&nbsp;B&nbsp;</a>	
					<a href="<%=sURL%>c" class='BoxedLinks' target='owBody'>&nbsp;C&nbsp;</a>	
					<a href="<%=sURL%>d" class='BoxedLinks' target='owBody'>&nbsp;D&nbsp;</a>	
					<a href="<%=sURL%>e" class='BoxedLinks' target='owBody'>&nbsp;E&nbsp;</a>	
					<a href="<%=sURL%>f" class='BoxedLinks' target='owBody'>&nbsp;F&nbsp;</a>	
					<a href="<%=sURL%>g" class='BoxedLinks' target='owBody'>&nbsp;G&nbsp;</a>	
					<a href="<%=sURL%>h" class='BoxedLinks' target='owBody'>&nbsp;H&nbsp;</a>	
					<a href="<%=sURL%>i" class='BoxedLinks' target='owBody'>&nbsp;I&nbsp;</a>	
					<a href="<%=sURL%>j" class='BoxedLinks' target='owBody'>&nbsp;J&nbsp;</a>	
					<a href="<%=sURL%>k" class='BoxedLinks' target='owBody'>&nbsp;K&nbsp;</a>	
					<a href="<%=sURL%>l" class='BoxedLinks' target='owBody'>&nbsp;L&nbsp;</a>	
					<a href="<%=sURL%>m" class='BoxedLinks' target='owBody'>&nbsp;M&nbsp;</a>	
					<a href="<%=sURL%>n" class='BoxedLinks' target='owBody'>&nbsp;N&nbsp;</a>	
					<a href="<%=sURL%>o" class='BoxedLinks' target='owBody'>&nbsp;O&nbsp;</a>	
					<a href="<%=sURL%>p" class='BoxedLinks' target='owBody'>&nbsp;P&nbsp;</a>	
					<a href="<%=sURL%>q" class='BoxedLinks' target='owBody'>&nbsp;Q&nbsp;</a>	
					<a href="<%=sURL%>r" class='BoxedLinks' target='owBody'>&nbsp;R&nbsp;</a>	
					<a href="<%=sURL%>s" class='BoxedLinks' target='owBody'>&nbsp;S&nbsp;</a>	
					<a href="<%=sURL%>t" class='BoxedLinks' target='owBody'>&nbsp;T&nbsp;</a>	
					<a href="<%=sURL%>u" class='BoxedLinks' target='owBody'>&nbsp;U&nbsp;</a>	
					<a href="<%=sURL%>v" class='BoxedLinks' target='owBody'>&nbsp;V&nbsp;</a>	
					<a href="<%=sURL%>w" class='BoxedLinks' target='owBody'>&nbsp;W&nbsp;</a>	
					<a href="<%=sURL%>x" class='BoxedLinks' target='owBody'>&nbsp;X&nbsp;</a>	
					<a href="<%=sURL%>y" class='BoxedLinks' target='owBody'>&nbsp;Y&nbsp;</a>	
					<a href="<%=sURL%>z" class='BoxedLinks' target='owBody'>&nbsp;Z&nbsp;</a>
				</td>
				<td width=9 height="25"><img src='../images/bev_right.gif' height="25"></td>
			</tr>
		</table>
		
		
		<table width=100% border="0" cellpadding="0" cellspacing="0" style="font-size: 11px">
			<tr bgcolor="#C3DAF9">
				<td>
					<table border="0" cellpadding="0" cellspacing="0" style="font-size: 11px">
						<tr bgcolor="#C3DAF9">
							<%If ( sPage = "ListReviews" ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<select name='sApprovalState' onChange='parent.owBody.location="owListReviews.asp?sSearch=ApprovalState&sSearchText="+this.value'>
									<option value='Y'>Needs Moderation?</option>
									<option value='N'><%=LANG_DT( "YES", "Yes" )%></option>
									<option value='Y'><%=LANG_DT( "NO", "No" )%></option>
								</select>
							</td>
							<%Else%>
							<form action='owListProducts.asp' method='post' name='ProductList' target="owBody">
							<input type='hidden' name='sAction' value=''>
							<td width=9 height="25"><img src='../images/bev_left.gif' height="25"></td>
							<td align="center" style="padding-left: 6px;" background='../images/bev_center.gif'>
								<img src='../images/icons/owSearch.gif' width=16>
							</td>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<select name='sSearch' style="font-size: 9px; border: 0px;">
									<option value='p.sku'><%=LANG_DT( "PRODUCT_SKU", "SKU" )%></option>
									<option value='p.description'><%=LANG_DT( "PRODUCT_DESC", "Description" )%></option>
									<option value='C.CustomerCompany'><%=LANG_DT( "PRODUCT_BRAND", "Brand" )%></option>
									<option value='p.price'><%=LANG_DT( "PRODUCT_PRICE", "Price" )%></option>
								</select>
							</td>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<input type="text" name="sSearchText" size="20" style="font-size: 11px; border: 1 solid #cccccc;">
							</td>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<input type='submit' name='Search' value=' <%=LANG_DT( "GO", "Go" )%> ' onClick="ProductList.sAction.value='Search';">
							</td>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<select name='sFeatured' onChange='parent.owBody.location="owListProducts.asp?sSearch=showinhome&sSearchText="+this.value'>
									<option value='0'><%=LANG_DT( "PRODUCT_FETURED", "Featured?" )%></option>
									<option value='-1'><%=LANG_DT( "YES", "Yes" )%></option>
									<option value='0'><%=LANG_DT( "NO", "No" )%></option>
								</select>
							</td>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<select name='sFeatured' onChange='parent.owBody.location="owListProducts.asp?sSearch=active&sSearchText="+this.value'>
									<option value='0'><%=LANG_DT( "PRODUCT_ACTIVEQUEST", "Active?" )%></option>
									<option value='-1'><%=LANG_DT( "YES", "Yes" )%></option>
									<option value='0'><%=LANG_DT( "NO", "No" )%></option>
								</select>
							</td>
							</form>
							<%End If%>
							
							<%If ( bOWBackOfficeDemoMode ) Then%>
							<%If ( sPage = "AddProduct" ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<span	onmouseover="addproduct.src='../images/addproduct.gif'; window.status = '<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="addproduct.src='../images/modifyproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';"
										onclick="alert('<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>')" 
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>
										<img name=addproduct border=0 src="../images/modifyproduct_bw.gif" align=absmiddle>
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>&nbsp;<%=LANG_DT( "SAVE", "Save" )%>&nbsp;
								</span>
							</td>
							<%End If%>
							<%If ( sPage = "ModifyProduct" ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<span	onmouseover="modifyproduct.src='../images/modifyproduct.gif'; window.status = '<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="modifyproduct.src='../images/modifyproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
										onclick="alert('<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>')" 
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>
										<img name=modifyproduct border=0 src="../images/modifyproduct_bw.gif" align=absmiddle>
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>&nbsp;<%=LANG_DT( "SAVE", "Save" )%>&nbsp;
								</span>
							</td>
							<%End If%>
							<%Else%>
							<%If ( sPage = "AddProduct" ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<script>
								//STEP 9: prepare submit FORM function
								function SubmitForm()
								{
									<%If ( sActiveX ) Then%>
									//STEP 10: Before getting the edited content, the display mode of the editor 
									//must not in HTML view.
									if(parent.owBody.obj1.displayMode == "HTML")
									{
										alert("<%=LANG_DT( "PRODUCT_UNCHECKHTML", "Please uncheck HTML view in the products detail before submitting." )%>")
										return ;
									}
									parent.owBody.addproduct.details.value = parent.owBody.obj1.getContent()
									<%End If%>
											
									//STEP 12: Form submit.
									parent.owBody.addproduct.submit()
								}
								</script>
								<span	onmouseover="addproduct.src='../images/addproduct.gif'; window.status = '<%=LANG_DT( "PRODUCT_CREATENEW", "Create a new product." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="addproduct.src='../images/modifyproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';"
										onclick="if ( validateForm( parent.owBody.addproduct, false, false, false, true, 17 ) ) SubmitForm();"
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>
										<img name=addproduct border=0 src="../images/modifyproduct_bw.gif" align=absmiddle>
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>&nbsp;<%=LANG_DT( "SAVE", "Save" )%>&nbsp;
								</span>
							</td>
							<%End If%>
							<%If ( sPage = "ModifyProduct" ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<script>
								//STEP 9: prepare submit FORM function
								function SubmitForm()
								{
									<%If ( sActiveX ) Then%>
									//STEP 10: Before getting the edited content, the display mode of the editor 
									//must not in HTML view.
									if(parent.owBody.obj1.displayMode == "HTML")
									{
										alert("<%=LANG_DT( "PRODUCT_UNCHECKHTML", "Please uncheck HTML view in the products detail before submitting." )%>")
										return ;
									}
									parent.owBody.modifyproduct.details.value = parent.owBody.obj1.getContent()
									<%End If%>
											
									//STEP 12: Form submit.
									parent.owBody.modifyproduct.submit()
								}
								</script>
								<span	onmouseover="modifyproduct.src='../images/modifyproduct.gif'; window.status = '<%=LANG_DT( "PRODUCT_SAVECHANGES", "Save the changes you have made to this product." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="modifyproduct.src='../images/modifyproduct_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
										onclick="if ( validateForm( parent.owBody.modifyproduct, false, false, false, true, 17 ) ) SubmitForm();" 
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>
										<img name=modifyproduct border=0 src="../images/modifyproduct_bw.gif" align=absmiddle>
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>&nbsp;<%=LANG_DT( "SAVE", "Save" )%>&nbsp;
								</span>
							</td>
							<%End If%>
							<%End If%>
							<%If ( sMessage <> "" ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<b><%=sMessage%></b>
							</td>
							<%End If%>
							<td width=9 height="25"><img src='../images/bev_right.gif' height="25"></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	<!--#include file="../footer.asp"-->