<%@ Register TagPrefix="uc1" TagName="SearchPane" Src="GenericControls/SearchPane.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LocationPane" Src="GenericControls/LocationPane.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ProfilePane" Src="GenericControls/ProfilePane.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ReportPane" Src="GenericControls/ReportPane.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SendToPane" Src="GenericControls/SendToPane.ascx" %>
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="True" EnableEventValidation="False" Inherits="DocumentRouter._Default" %>

<%@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Tarvos Document Router</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"/>
		<meta content="C#" name="CODE_LANGUAGE"/>
		<meta content="JavaScript" name="vs_defaultClientScript"/>
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"/>
		<link href="Data/DocumentRouter.css" type="text/css" rel="stylesheet" />
		<script src="Scripts/Tools.js" type="text/javascript"></script>
		<script src="Scripts/FieldUpdate.js" type="text/javascript"></script>
		
		<script language="javascript" type="text/javascript">
<!--

function ShowWait()
{
	try
	{
		document.body.style.cursor = 'wait';
		document.getElementById('waitImg').style.display = "";
	}
	catch(e)
	{
	}
}

function HideWait()
{
	try
	{
		document.body.style.cursor = 'default';
		document.getElementById('waitImg').style.display = "none";
	}
	catch(e)
	{
	}
}

// Redirect to AlchemyWeb logout page, so license is released
function HandleOnClose()
{
	try
	{
		if (event.clientY < 0)
		{
			if(sAlchemyLogout != '')
			{
				self.location.href = sAlchemyLogout;
			}
		}
	}
	catch(e)
	{
	}
}

			// Add javascript
function DeleteDocumentQuestion()
{
    if (confirm('Document verwijderen uit database?'))
    {
        return false;
    }
    event.returnValue=false;
    event.cancel = true;
    return false;
}

function RequestStart(sender, args)
{
	if (args.get_eventTarget().indexOf("ExportExcel") != -1 ||
				args.get_eventTarget().indexOf("btnLogOut") != -1)
	{
		args.set_enableAjax(false);
	}
}

//-->
		</script>
	</head>
	<body onmouseover="javascript:window.status='Tarvos DocumentRouter'; return true;" onresize="javascript:ResizeTables();"
		onbeforeunload="javascript:HandleOnClose();" topMargin="0" onload="javascript:RefreshCombos(); javascript:HideWait(); javascript:ResizeTables();">
		<form id="DefaultForm" method="post" runat="server">
			<asp:ScriptManager ID="ScriptManager1" runat="server">
			</asp:ScriptManager>
			<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
			</telerik:RadWindowManager>
			<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Web20" />
		<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableEmbeddedScripts="true" ClientEvents-OnRequestStart="RequestStart" ClientEvents-OnResponseEnd="javascript:RefreshCombos(); javascript:HideWait(); javascript:ResizeTables();">
			<table class="MainTable" id="tblMain" cellspacing="0" cellpadding="0" align="center">
				<tr class="Header" valign="middle">
					<td><asp:image id="Image1" runat="server" ImageUrl="~/Images/logo.png"></asp:image></td>
					<td><asp:label id="lblHeader" runat="server" ForeColor="White">Tarvos Document Router</asp:label></td>
					<td></td>
				</tr>
				<tr>
					<td style="HEIGHT: 10px" align="right" background="Images/menuback.png"
						bgcolor="white" colspan="4"></td>
				</tr>
				<tr>
					<td bgColor="white" colSpan="4"><asp:label id="lblError" runat="server" ForeColor="Red" Visible="False" Font-Names="Verdana"
							Font-Size="Medium">Label</asp:label></td>
				</tr>
				<tr>
					<td class="Tab"><asp:button id="btnTabReport" runat="server" Text="Selectie" CausesValidation="False" CssClass="TabButton" onclick="btnTabLeft_Click"></asp:button><asp:button id="btnTabSearch" runat="server" Text="Zoeken" CausesValidation="False" CssClass="TabButton" onclick="btnTabLeft_Click"></asp:button><asp:button id="btnTabAdd" runat="server" Text="Toevoegen" CausesValidation="False" CssClass="TabButton" onclick="btnTabLeft_Click"></asp:button></td>
					<td class="Tab">
						<p><asp:imagebutton id="btnSettings" runat="server" ImageUrl="~/Images/settings.png" CssClass="ImgButton" ToolTip="Instellingen"></asp:imagebutton><asp:imagebutton id="btnActionReport" runat="server" ImageUrl="~/Images/actionreport.png" CssClass="ImgButton" ToolTip="Rapportage van acties"></asp:imagebutton><asp:imagebutton id="btnLogOut" runat="server" ImageUrl="~/Images/exit.png" CssClass="ImgButton" ToolTip="Afsluiten"></asp:imagebutton><asp:imagebutton id="btnHelp" runat="server" ImageUrl="~/Images/help.png" CssClass="ImgButton" ToolTip="Help"></asp:imagebutton>&nbsp;&nbsp;<asp:Image id="waitImg" runat="server" ImageUrl="~/Images/icon_wait.gif"></asp:Image></P>
					</td>
					<td class="Tab" align="left"><asp:button id="btnTabSendTo" runat="server" Text="Verstuur" CausesValidation="False" CssClass="TabButton" onclick="btnTab_Click"></asp:button><asp:button id="btnTabLocation" runat="server" Text="Verplaats" CausesValidation="False" CssClass="TabButton" onclick="btnTab_Click"></asp:button><asp:button id="btnTabProfile" runat="server" Text="Profiel" CausesValidation="False" CssClass="TabButton" onclick="btnTab_Click"></asp:button></td>
				</tr>
				<tr>
					<td class="ListColumn"><br />
						<uc1:reportpane id="ReportPane1" runat="server"></uc1:reportpane><uc1:searchpane id="SearchPane1" runat="server" Visible="False"></uc1:searchpane></td>
					<td class="DocumentColumn">
						<table class="DocTable" id="tblDoc" height="100%" cellspacing="0" cellpadding="0" width="100%">
							<tr valign="top" bgColor="coral" height="100%">
								<td>
									<div id="subFrame" runat="server"><iframe id="ContentFrame" tabindex="0" src="Navigation.aspx" frameBorder="yes" width="100%"
											scrolling="auto" height="800" runat="server"></iframe>
									</div>
								</td>
							</tr>
						</table>
					</td>
					<td class="RightColumn"><br />
						<table class="ButtonBar" id="tbButtons" cellspacing="0" cellpadding="0" border="0">
							<tr>
								<td height="10"><asp:imagebutton id="btnSend" runat="server" ImageUrl="~/Images/send3.png" CssClass="ImgButton" ToolTip="Versturen"></asp:imagebutton><asp:imagebutton id="btnStore" runat="server" ImageUrl="~/Images/Opslaan2.png" CssClass="ImgButton" ToolTip="Verplaatsen"></asp:imagebutton><asp:imagebutton id="btnPublish" runat="server" ImageUrl="~/Images/publish.PNG" CssClass="ImgButton" ToolTip="Verplaatsen en notificeren"></asp:imagebutton><asp:imagebutton id="btnSave" runat="server" ImageUrl="~/Images/opslaan.PNG" CssClass="ImgButton" ToolTip="Wijzigingen opslaan"></asp:imagebutton></td>
							</tr>
						</table>
						<br />
						<table id="tblDestination" style="WIDTH: 100%" cellspacing="2" cellpadding="0" border="0">
							<tr>
								<td><uc1:locationpane id="LocationPane1" runat="server"></uc1:locationpane><uc1:profilepane id="ProfilePane1" runat="server"></uc1:profilepane><uc1:sendtopane id="SendToPane1" runat="server"></uc1:sendtopane></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</telerik:RadAjaxPanel>
		</form>
	</body>
</html>
