<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
    function closeThisWindow() {
        alert("Close Window Opened");
        self.close();
    }
</script>
</head>
<body onload="closeThisWindow()">
This doc should only be opened by middle.html.
<br/>
This doc should automatically close the window.
</body>
</html>