﻿// JScript File
//Detect which browser type is being used and store in hidden field hidValue

varBrowser = "";
if (document.getElementById) {
	//1) Detect IE5+ and Firefox (including NS6+)
	varBrowser = "I";
	if (document.documentMode == "8") {
	    varBrowser = "I8";
	}
}
if (document.getElementById && !document.all) {
	//2) Detect Firefox (and NS6+) exclusively
	varBrowser = "F";
}
if (window.opera && window.print) {
	//3) Detect Opera 6+ exclusively
	varBrowser = "O";
}

//Store the browser type in a hidden field on the form
var hidValue;
hidValue = document.getElementById("hidBrowser");
hidValue.value = varBrowser;
// alert(varBrowser);

