<%@ Page EnableSessionState="False" Language="vb" AutoEventWireup="false" Codebehind="logofflast.aspx.vb" Inherits="HTCOMNET.logofflast"%>
<HTML>
	<HEAD>
		<title>Log off</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
	</HEAD>
	<body bgcolor="#5a7dde" text="#000000">
		<p align="center">
			<font face="Arial" size="3" color="#ffffff">
			<%if Request.Querystring("personalend")<>"" then%>
				Personal version don't allow to work with program more than 3 users with different names.
			<%else%>
				<%if request.querystring("LogoffMessage")<>"" then%>
					<%=String.Format(request.querystring("LogoffMessage"), "<a href=""Default.aspx"" target=""_parent"">", "</a>")%>
				<%else%>
					Your session has ended. If you would like to work with files again click <a href="Default.aspx" target="_parent">here</a>
				<%end if%>
			<%end if%>
			</font>
		</p>
		<%if request.querystring("dontclose")="" then%>
		<script language="javascript">
			if(window.parent.topFrame)
			{
				if(window.parent.topFrame.newwindow)
				{
					if(window.parent.topFrame.newwindow.location)
					{
						window.parent.topFrame.newwindow.location.href='logofflast.aspx?dontclose=yes';	
						window.parent.topFrame.newwindow.close(); 
					}
				}
			}
			if(window.opener)
			{
				window.opener.parent.location.href='logofflast.aspx?dontclose=yes';	
				window.self.close(); 
			}
			var s=new String(window.parent.location.href);
			if (s.lastIndexOf('logofflast.aspx')==-1)  
			{
				window.parent.location.href='logofflast.aspx?dontclose=yes'				
			}			
		</script>
		<%end if%>
	</body>
</HTML>

