<script language=javascript>
function window.onbeforeunload()
{
if ((event.clientX>document.body.clientWidth) && (event.clientY<0||event.altKey))
sendData();
}
function sendData(){
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("POST", "do.asp", false);
xmlhttp.Send();
}
</script>
<script language=javascript>
function window.onbeforeunload()
{
if ((event.clientX>document.body.clientWidth) && (event.clientY<0||event.altKey))
sendData();
}
function sendData(){
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("POST", "do.asp", false);
xmlhttp.Send();
}
</script>