Hi all,
I have one doubt, how do close popup windows on logout of an application. I am using JavaScript to popup window. Below is the code I am using..

Code:
<script language="javascript"> 
function openWindow(view) 
{ 
if (view ==  "availability")
window.open('Availability.htm?',"mywindow","menubar=0,resizable=0,widthu0,height%0"); 
if (view ==  "requests")
window.open('Requests.htm?',"mywindow","menubar=0,resizable=0,widthu0,height%0"); 
} 
</script> 
<table width="98%" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td><strong><fmt:message key="view"/>&nbsp;:&nbsp;</strong>
		<a href="javascript:openWindow('availability')"><strong><fmt:message key="search.Availability"/></strong></a> 
		&nbsp;&nbsp;|&nbsp;&nbsp;
		<a href="javascript:openWindow('requests')"><strong><fmt:message key="search.Requests"/></strong></a>
		

	</tr>
</table>
I have one "OK" button for closing the window, where I have used window.close(), and its working fine. Apart from this I want the window to be closed when the user clicks logout tab without closing window.
How do I do this?
Thanks in advance.