/*
  Hong Song
  2004-06-01
  
  <script src="JavaScript/pcrs.js" type="text/javascript" ></script>
*/

function refresh(refreshUrl)
{
  // alert(refreshUrl);
  window.location = refreshUrl;
} // refresh()


function jsShowHelp(helpUrl)
{
  if (helpUrl == "")
  {
    return false;
  }
// alert(helpUrl);
  
  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(helpUrl, 'rs_help', winParam);
 // wndTarget.location = helpUrl;
 // wndTarget.focus();
} // jsShowHelp()



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 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('', 'rs_help', winParam);
  wndTarget = window.open('', '', 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()

