the scripst do not work for me, they do not hide the background, the page1 that is where the Div to hide has this escript
<script type = "text / javascript">
function hideDiv () {
var div = document.getElementById ('<% = background.ClientID%>');
div.style.display = 'none';
}
</ script>
and the page that closes and must give the order to hide it has this other
<script type = "text / javascript">
window.attachEvent ('beforeunload', function (event) {
window.opener.hideDiv ();
});
</ script>