	function LogOFF()
		{
		this.LogOFF = LogOFF1;
		}
	
	
	
	/*function LogOFF()
		{
			if (!window.XMLHttpRequest)
			{
				try
				{
					if (window.event.clientX < 0 && window.event.clientY < 0)
						{
							var oHTTP= new ActiveXObject("Microsoft.XMLHTTP");
							oHTTP.open("POST","logoff.aspx", false);
							oHTTP.send();
							//alert("User Logged Out.");
						}
				}catch(ex)
				{
				}
			}
		}
	*/
	
	
	
	function LogOFF1()
		{		
	if (!window.XMLHttpRequest)
	{
		var xmlHttp = null;
		var ex;
		
		try
		{ 
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
			if (window.event.clientX < 0 && window.event.clientY < 0)
			{
				xmlHttp.open("POST","logoff.aspx", false);
				xmlHttp.send();
			}
		} 
		catch (ex) 
		{
			try
			{ 
				xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
				if (window.event.clientX < 0 && window.event.clientY < 0)
				{
					xmlHttp.open("POST","logoff.aspx", false);
					xmlHttp.send();
				}
			}
			catch (ex)
			{
				try
				{ 
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
					if (window.event.clientX < 0 && window.event.clientY < 0)
					{
						xmlHttp.open("POST","logoff.aspx", false);
						xmlHttp.send();
					}
				}
				catch (ex)
				{
					//alert("User Did not log Off.");
				}
			}
		}
					
	}
	else
	{
		var IE7xmlHttp = null;
		var IE7ex;		
						
		IE7xmlHttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
		var abssize = document.body.offsetWidth - 30;
		
		if (event.clientX >= abssize && event.clientY < 0)
		{			
			IE7xmlHttp.open("POST","logoff.aspx", false);
			IE7xmlHttp.send();
		}
	}
		//if (window.event.clientX < 0 && window.event.clientY < 0)
			//{
				//var oHTTP= new ActiveXObject("Microsoft.XMLHTTP");
				//oHTTP.open("POST","logoff.aspx", false);
				//oHTTP.send();
				/*alert("User Logged Out.");*/
			//}
		}