var browser = new Browser();

function Browser()
{
	var userAgent;
	var str, i;
	
	this.engine = "unknown";
	this.version = null;

	userAgent = navigator.userAgent;
   if ( ( i = userAgent.indexOf( "MSIE" ) ) >= 0 )
   {
      this.engine = "MSIE";
      this.version = parseFloat( userAgent.substr( i + 4 ) );
   }
   else if ( ( i = userAgent.indexOf( "Netscape6/" ) ) >= 0 )
   {
      this.engine = "Netscape";
      this.version = parseFloat( userAgent.substr( i + 10 ) );
   }
   else if ( ( i = userAgent.indexOf( "Gecko" ) ) >= 0 )
   {
      this.engine = "Gecko";
      this.version = 6.1;
   }

   return;
}

function browserInit()
{
	document.forms[0].scrwidth.value = screen.width
	document.forms[0].scrheight.value = screen.height;
	document.forms[0].availscrwidth.value = screen.availWidth
	document.forms[0].availscrheight.value = screen.availHeight;
	var userbox = document.getElementById("login_username");
	if (userbox != null)
	{
		userbox.focus();
	}
}
