function BrowserDetector(form) {

// Do browser detection on the client (in someform.htm)
// and return results with the form submission.

// Get the name of the browser.
var browser = navigator.appName;

// Get the user's platform and version of the browser.
var platform_version = navigator.appVersion;

// Return values to the CGI program by adding the values for
// browser and platform_version to the query string.

var browserinfo = browser + " " + platform_version;
form.browserinfo.value = browserinfo;

}