function checking(path,e)
{
  var ns4 = document.layers;
  var ns6 = document.getElementById && !document.all;
  var ie4 = document.all;
	
	url=path+"winlogout.php";

   if(document.all)
   {
		if(window.screenLeft < 10004)
		{
			//alert('refresh');
		}
		else
		{
			//alert('closed');
			window.open(url,"logout","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=10,height=5");
		}
	}
/*
	else
	{
	//alert(e);
	//alert(document.getElementById && !document.all);
	//alert(ns6);
	alert(document.getElementById && !document.all);
	return false;
		if(ns4)
		{
			e.returnValue = "This window is going to close";
			alert("firebox closed");
			//window.open(url,"logout","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=10,height=5");
		}
		else
		{
		alert("firebox refresh");
		return false;
		}
	}
*/
}
