var newWindow = -1

function closePopups()
{
if (newWindow != -1)
   {
    newWindow.close();
   }
}
