function ontyne_doPopup( h, w, scr )
{
  var parms = "width="+w+",height="+h+",top=10,left=10,resizable=1,scrollbars=1";
  var myWin = window.open( scr, "print", parms );
}

function ontyne_isNetscape()
{
  if( navigator.appName == "Netscape" )
  {
    return( true );
  }

  return( false );
}

function ontyne_isIE()
{
  if( navigator.appName == "Microsoft Internet Explorer" )
  {
    return( true );
  }

  return( false );
}

function ontyne_getBrowserVersion()
{
  var ver = 0;

  if( isIE() )
  {
    ver = navigator.appVersion.substring( navigator.appVersion.indexOf( "MSIE" ) );
    ver = ver.substring( ver.indexOf( " " ) + 1 );
    ver = parseInt( ver );
  }
  else if( ontyne_isNetscape() )
  {
    ver = parseInt( navigator.appVersion(), 10 );
  }

  return( ver );
}

function ontyne_noright( e )
{
  var msg = "Copyright (c) 2004 OnTyne.com, please email info@ontyne.com";
  if( ontyne_isNetscape() && e.which == 3 )
  {
    alert( msg );
    return( false );
  }
  if( ontyne_isIE() && event.button == 2 )
  {
    alert( msg );
    return( false );
  }
  return( true );
}

function ontyne_norightclick()
{
  if( document.images )
  {
    for( i=0; i<document.images.length; i++ )
    {
      document.images[i].onmousedown = ontyne_noright;
      document.images[i].onmouseup = ontyne_noright;
    }
  }
}
