/*
  eflora.js
  Hong Song
  2004-06-01
*/

function refresh(refreshUrl)
{
  // alert(refreshUrl);
  window.location = refreshUrl;
} // jsShowTaxon()

function jsShowIdenficationPage(pageUrl)
{
  if (pageUrl == "")
  {
    return false;
  }
  winTop    = 100;
  winLeft   = 100;
  winWidth  = 500;
  winHeight = 500;

  winParam  = 'toolbar=yes, menubar=no, location=no, directories=no, '
            + 'status=no, width='+winWidth + ', height='+winHeight
            + ', top='+winTop + ', left='+winLeft
            + ', resizable=yes, scrollbars=yes';

  wndTarget = window.open('', 'identication', winParam);
  wndTarget.location = pageUrl;
  wndTarget.focus();
} // jsShowIdenficationPage()


function jsShowSetChar(showCharUrl)
{
  if (showCharUrl == "")
  {
    return false;
  }
  winTop    = 100;
  winLeft   = 100;
  winWidth  = 500;
  winHeight = 500;

  winParam  = 'toolbar=yes, menubar=no, location=no, directories=no, '
            + 'status=no, width='+winWidth + ', height='+winHeight
            + ', top='+winTop + ', left='+winLeft
            + ', resizable=yes, scrollbars=yes';

  wndTarget = window.open('', 'actkey_info', winParam);
  wndTarget.location = showCharUrl;
  wndTarget.focus();
} // jsShowSetChar()

function jsShowTaxon(refreshUrl)
{
  winTop    = 10;
  winLeft   = 10;
  winWidth  = 500;
  winHeight = 600;

  winParam  = 'toolbar=yes, menubar=no, location=no, directories=no, '
            + 'status=no, width='+winWidth + ', height='+winHeight
            + ', top='+winTop + ', left='+winLeft
            + ', resizable=yes, scrollbars=yes';

  wndTarget = window.open('', 'actkey_info', winParam);
  wndTarget.location = refreshUrl;
  wndTarget.focus();
} // jsShowTaxon()

function isIEVersion4()
{
  szAppVer = navigator.appVersion;
  ichMSIE  = szAppVer.indexOf('MSIE');
  if (szAppVer.substring(ichMSIE + 5, ichMSIE + 6) == 4)
    return(true);

  return(false);
} // isIEVersion4()

