window.onbeforeunload=confirmExit;
function confirmExit(e)
{
	var xmlhttp;
	var yPos;
	
	if (window.event) // Y Position for IE6, IE5, IE7+
	{
		yPos = window.event.clientY;
	}
	else // Y Position for Firefox, Chrome, Opera, Safari
	{
		yPos = e.clientY;
	}
	
	if(yPos < 0 && yPos < -80)
	{
		var xmlhttp;
		if (window.ActiveXObject) 
		{ // code for IE6, IE5
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			xmlhttp.open("GET","/layouts/BriggsRacing/AbandonSession.aspx",false);
			xmlhttp.send();
		}
		if (window.XMLHttpRequest)
		{
			// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp = new XMLHttpRequest();
			xmlhttp.open("GET","/layouts/BriggsRacing/AbandonSession.aspx",false);
			xmlhttp.send();
		}
	}
}