var ph = null;
function Popup( url )
{
   ph = window.open( url, 'SpeciesPopup','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=600');
//   if (navigator.appName == "Netscape")
//   {
      ph.focus();
//   }
}
function Popup2( url )
{
   ph = window.open( url, 'SpeciesPopup','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=685,height=600');
//   if (navigator.appName == "Netscape")
//   {
      ph.focus();
//   }
}
function PopupInhabitant( url )
{
   ph = window.open( url, 'InhabitantPopup','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=650,height=600');
//   if (navigator.appName == "Netscape")
//   {
      ph.focus();
//   }
}
function PopupPhotograph( url )
{
   ph = window.open( url, 'PhotoPopup','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=1040,height=784');
//   if (navigator.appName == "Netscape")
//   {
      ph.focus();
//   }
}
function PopupDive( url )
{
   ph = window.open( url, 'DivePopup','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=742,height=620');
//   if (navigator.appName == "Netscape")
//   {
      ph.focus();
//   }
}
function SpeciesHeader( )
{
   if (window.name != 'SpeciesPopup')
   {
       header( 'Reference', '', '' , '', ''  )
   }
}
function SpeciesFooter( copyrightRange )
{
   if (window.name == 'SpeciesPopup')
   {
      w( '<table id="Copyright" border=0 cellspacing=3 cellpadding=1 width=580>' )
      w( '<tr>' )
      w( '<td><p align=center><font size="-1" face="arial,helvetica,univers,zurich bt,sans-serif">&#169; Copyright ' + copyrightRange + ', ATJ</font></p></td>')
      w( '</tr>' )
      w( '</table>' )
      w( '</body>' )
   }
   else
   {
      footer()
   }
}
function IndividualHeader( )
{
   if (window.name != 'InhabitantPopup')
   {
       header( 'Tanks', '', '' , '', ''  )
   }
}
function DiveHeader( )
{
   if (window.name != 'DivePopup')
   {
       header( 'Dive Log', 'Dive Log', 'Dive Log' , '', ''  )
   }
}
function DiveFooter( copyrightRange )
{
   if (window.name == 'DivePopup')
   {
      w( '<table id="Copyright" border=0 cellspacing=3 cellpadding=1 width=580>' )
      w( '<tr>' )
      w( '<td><p align=center><font size="-1" face="arial,helvetica,univers,zurich bt,sans-serif">&#169; Copyright ' + copyrightRange + ', ATJ</font></p></td>')
      w( '</tr>' )
      w( '</table>' )
      w( '</body>' )
   }
   else
   {
      footer()
   }
}

