/*
* This code fragment handles the logout action  in explorer
*/

	document.onkeydown=captureAltF4;
	var altF4 = false;

	function captureAltF4()
	{
		if(window.event.keyCode==115 && window.event.altKey==true)
			altF4 = true;
		else
			altF4 = false;
	}



	function logout()
	{
		var abssize = document.body.offsetWidth-30;
		//if the user press the x button (which location is on the far right side of the page
		//and y coordinates are always negative)
		//or the onbeforeunload event was invoked when alt was pressed that means alt+f4 is the cause
		if((window.event.clientX>=abssize && window.event.clientY<0) || altF4==true)
		   location = "LogOut.do";
	}

/*
*	End of logout action
*/

