
// We can only define style attributes for forms if the browser is IE or NS 6+ (or equivalents).
// This script will include a linked stylesheet if the browser is compliant.

// Get the browser name and version number
browserType = navigator.appName;
browserVersion = navigator.appVersion;
if (browserType.indexOf("Netscape")!=-1) {
	// if the browser is Netscape check the version number (6 identifies itself as 5)
	if (parseInt(navigator.appVersion) > 4) {
		// if the version check suceeds output the css
		document.write('<link rel="stylesheet" href="/_skin/css/form.css" type="text/css" />');	
	}
} else if (browserType.indexOf("Microsoft")!=-1) {
	// if the browser is Internet Explorer just output the css
	document.write('<link rel="stylesheet" href="/_skin/css/form.css" type="text/css" />');
} else {
	// if the browser is none of the above just output the css as for Internet Explorer
	// (this functionality may change after further testing on other browsers (Opera, Mozilla, etc.)
	document.write('<link rel="stylesheet" href="/_skin/css/form.css" type="text/css" />');
}
