<!--#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"))
	sIDOrder	= Trim(Request("sIDOrder"))
	%>
	<script type="text/javascript" src="../Script/fValConfig.js"></script>
	<script type="text/javascript" src="../Script/fValidate.js"></script>

	<script language = "javascript">

		function PackingSlipPopup(){
			window.open("PackingSlip/Default.asp?sIDOrder=<%=sIDOrder%>","","scrollbars,resizable=yes");
		}

	</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 width=100% border="0" cellpadding="0" cellspacing="0" style="font-size: 11px">
		<form action='owListOrders.asp' method='post' name='OrderList' target="owBody">
			<input type='hidden' name='sAction' value=''>
			<tr>
				<td>
					<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%>
								<span	onmouseover="delorder.src='../images/delorder.gif'; window.status = '<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="delorder.src='../images/delorder_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=delorder  border="0" src="../images/delorder_bw.gif" align="absmiddle">
										<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">&nbsp;<%=LANG_DT( "DELETE", "Delete" )%>&nbsp;
								</span>	
								<%Else%>
								<span	onmouseover="delorder.src='../images/delorder.gif'; window.status = 'Remove selected orders.'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="delorder.src='../images/delorder_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
										onclick="if (confirm('<%=LANG_DT( "ORDERS_DELCONFIRM", "Are you sure you wish to delete these orders?" )%>')) {parent.owBody.OrderList.sAction.value='Delete'; parent.owBody.OrderList.submit();};" 
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">
										<img name=delorder  border="0" src="../images/delorder_bw.gif" align="absmiddle">
										<img src="../images/Blank.gif" width=2 height=20 align="absmiddle">&nbsp;<%=LANG_DT( "DELETE", "Delete" )%>&nbsp;
								</span>	
								<%End If%>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<select name='sOrderStatus' onChange='parent.owBody.location="owListOrders.asp?sAction=Search&sOrderStatus="+this.value'>
									<option value='0'><%=LANG_DT( "ORDERS_VIEW", "View Orders of Type..." )%></option>
									<option value=''><%=LANG_DT( "ALL", "All" )%></option>
									<option value='<%=C_PENDING%>'><%=LANG_DT( "ORDERS_PEND", "Pending" )%></option>
									<option value='<%=C_DELIVERED%>'><%=LANG_DT( "ORDERS_DEL", "Delivered" )%></option>
									<option value='<%=C_CANCELLED%>'><%=LANG_DT( "ORDERS_CANCEL", "Cancelled" )%></option>
									<option value='<%=C_PAID%>'><%=LANG_DT( "ORDERS_PAID", "Paid" )%></option>
									<option value='<%=C_CHARGEBACK%>'><%=LANG_DT( "ORDERS_CHARGEBACK", "Chargeback" )%></option>
									<option value='<%=C_REFUNDED%>'><%=LANG_DT( "ORDERS_REFUNDED", "Refunded" )%></option>
									<option value='<%=C_UNFINALIZED%>'><%=LANG_DT( "ORDERS_UNFINALIZED", "Unfinalized" )%></option>
								</select>
							</td>
							<%If ( sPage = "ModifyOrder" ) Then %>
							<%If ( bOWBackOfficeDemoMode ) Then%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<span	onmouseover="modifyorder.src='../images/modifyorder.gif'; window.status = '<%=LANG_DT( "GLOBAL_FUNCTION_DISABLED", "Function Disabled in Demo." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="modifyorder.src='../images/modifyorder_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=modifyorder border=0 src="../images/modifyorder_bw.gif" align=absmiddle>
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>&nbsp;<%=LANG_DT( "SAVE", "Save" )%>&nbsp;
								</span>
							</td>
							<%Else%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<span	onmouseover="modifyorder.src='../images/modifyorder.gif'; window.status = '<%=LANG_DT( "ORDERS_SAVECHANGES", "Save the changes you have made to this order." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="modifyorder.src='../images/modifyorder_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
										onclick="if ( validateForm( parent.owBody.ModifyOrder, false, false, false, true, 17 ) ) parent.owBody.ModifyOrder.submit();" 
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>
										<img name=modifyorder border=0 src="../images/modifyorder_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%>
							<td align="center" background='../images/bev_center.gif' >&nbsp;&nbsp;</td>
							<td align="center" background='../images/bev_center.gif' >
								<span	onmouseover="printbutton.src='../images/printer.gif'; window.status = '<%=LANG_DT( "ORDERS_PRINTDOCS", "Print an invoice, packing slip or shipping label for this order." )%>'; this.style.background='#F5C058'; this.style.border='1px solid #cccccc';" 
										onmouseout="printbutton.src='../images/printer_bw.gif'; window.status = ''; this.style.background='transparent'; this.style.border='1px solid #C3DAF9';" 
										onclick="PackingSlipPopup();" 
										style="cursor: hand; border: 1px solid #C3DAF9; padding-right:0px;">
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>
										<img name=printbutton  border=0 src="../images/printer_bw.gif" align=absmiddle>
										<img src="../images/Blank.gif" width=2 height=20 align=absmiddle>&nbsp;<%=LANG_DT( "ORDERS_PRINTDOCS2", "Print Documents" )%>&nbsp;
								</span>
							</td>
							<%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>
		</form>
		</table>

<!--#include file="../footer.asp"-->