//http://www.quirksmode.org/js/detect.html
//Last Updated :: 10 July 09
/*
Include the following code onLoad of the form on which you have to track fields.
with (document.forms[0])
{
BrowserName.value = BrowserDetect.browser;
BrowserVersion.value = BrowserDetect.version;
OSInfo.value = BrowserDetect.OS;
}
*/
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i