function closeOnEscape(e, path)
{
	var key = (window.event) ? e.keyCode : e.which; // MSIE / Firefox
	if (key == 27)
	{
		//alert(key + ' - ' + path)
		window.location.href = path;
		return false;
	}
	return true;
}