// File:	reg\sys\login.js
// Project:	Regsvr.NET Version 4.7
// Author:	Zach Groff
//			M&S Productions, LLC
//			http://www.multimediaandstaging.com
// Purpose:	Provides System Javascript Functions for use in reg\login subsystem.


//---------------------------
	// Source: M&S Productions via http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
	// Browser detection:
	
	function Is()
	{
		var agt = navigator.userAgent.toLowerCase();
		this.major = parseInt(navigator.appVersion);
		this.minor = parseFloat(navigator.appVersion);
		
		this.nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('spoofer') == -1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera') == -1) && (agt.indexOf('webtv') == -1) && (agt.indexOf('hotjava') == -1));
		this.nav4up = (this.nav && (this.major >= 4));
		
		this.gecko = (agt.indexOf('gecko') != -1);
		
		this.ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
		this.ie4up = (this.ie && (this.major >= 4));
	}

//---------------------------

function submit_form()
{
	var is = new Is();
	if (!is.gecko && !is.ie4up)
		alert('This software recommends that you use either Microsoft Internet Explorer 4.0+ or Mozilla Firefox 1.1+.\nPlease keep this in mind if you run into problems using this software.');
	
	frmMain.action = 'login.aspx?t1=1&s1=0';
	frmMain.submit();
}
