// $Id: browser_check.js,v 1.10 2004/11/30 10:26:28 ram Exp $

// check if browser is netscape 4.x
function browser_check()
{
	var browser = navigator.appName;
	var major_version = parseInt(navigator.appVersion);
	var netscape_msg = "You are using Netscape 4.x!\n\n" +
		"This browser is very old and can not display\n" +
		"this, and main other pages correctly.\n\n" +
		"Please upgrade your browser.";

  if ((browser == "Netscape") && (major_version == 4)) {
		if (confirm(msg)) {
			window.location="netscape4.html";
		}
	}
}

// check if browser is ie
function ie_check()
{
  var browser = navigator.appName;
  var msg = "This browser does not currently render this site\n" +
    "correctly, you may see many inconsistences with the\n" +
    "page layout.\n\n" +
    "Firefox 0.8+\n" +
    "Mozilla 1.0+\n" +
    "Netscape 6.0+\n" +
    "Safari 1.0+\n" +
    "Opera 7.0+\n\n" +
    "are known to display this site correctly.";

  if (browser == "Microsoft Internet Explorer") {
    alert(msg);
  }
}
