//Internet Explorer -> Explorer//Netscape Navigator -> Netscapefunction getBrowserName(){	aName=navigator.appName.toUpperCase();	if(aName.indexOf("MICROSOFT")>=0) return "Explorer";	if(aName.indexOf("NETSCAPE")>=0) return "Netscape";	return "";}//$B%V%i%&%6%P!<%8%g%s<hF@(Jfunction getBrowserVersion(){	browser=getBrowserName();	version=0;	s=0;	e=0;	appVer=navigator.appVersion;	if(browser=="Netscape")	{		s=appVer.indexOf(" ",0);		version=eval(appVer.substring(0,s));		if(version>=5) version++;	}		if(browser=="Explorer")	{		appVer=navigator.userAgent;		s=appVer.indexOf("MSIE",0)+5;		e=appVer.indexOf(";",s);		version=eval(appVer.substring(s,e));	}	return version;}//Windows95/98/Me/NT/2000 -> Windows//Macintosh -> MacOS//UNIX -> UNIXfunction getOSType(){	uAgent=navigator.userAgent.toUpperCase();	if(uAgent.indexOf("WIN")>=0) return "Windows";	if(uAgent.indexOf("MAC")>=0) return "MacOS";	if(uAgent.indexOf("X11")>=0) return "UNIX";	return "$BITL@(J"}