<!--Copyright 2002 DIGITALMATRIX,INC. All rights reserved.-->


 function GetOsInfo() {

		var OsData = navigator.userAgent.toUpperCase();

		if( OsData.indexOf("MAC") >= 0 ) {
			return("M");
		}

		if( OsData.indexOf("WIN") >= 0 ) {
			return("W");
		}

		return("");
	}


	function GetBrowserInfo() {

	    var BrowserName = navigator.appName.toUpperCase();

    	if (BrowserName.indexOf("MICROSOFT INTERNET EXPLORER") >= 0) {
			return("i");
		}

	    if( BrowserName.indexOf("NETSCAPE") >= 0) {
			return("n");
		}

		return("");
	}

	
	function GetVersionInfo() {

		var BrowserName = GetBrowserInfo();
		var Version     = navigator.appVersion;
		var ReturnValue = "";

		if( BrowserName == "i") {
			point01 = Version.indexOf("MSIE");
			work01  = Version.substring(point01);
			point02 = work01.indexOf(" ");
			work02  = work01.substring(point02);
			point03 = work02.indexOf(";");
			work03  = work02.substring(0,point03);

			if(isNaN(parseInt(work03))) {
				ReturnValue = "";
			} else {

				if( parseInt(work03) < 4 ) {
					ReturnValue = ""									// not support
				} else {
					ReturnValue = String(parseInt(work03));				// chenge Integer
				}
			}

		} else { 
			if( BrowserName == "n") {

				point = Version.indexOf(" ");
				work  = Version.substring(0, point);

				if(isNaN(parseInt(work))) {
					ReturnValue = "";
				} else {

					if( parseInt(work) < 4 ) {
						ReturnValue = "";								// not support
					} else {
						ReturnValue = String(parseInt(work));			// chenge Integer 
					}
				}
			}
		}

		return(ReturnValue);
	}
