/*------------------------------------------------------
monanet Library JavaScript
Author: Hideo Ynagaihara
Version:  2 April 2005
--------------------------------------------------------*/


/* check ua */
function SystemRequirementCheck(){

	this.ChAgent = navigator.userAgent;
	this.ChBrowser = navigator.appName;
	this.ChAppVer = navigator.appVersion;

	this.Win = (this.ChAgent.indexOf("Win") != -1);
	this.Mac = (this.ChAgent.indexOf("Mac") != -1);
	this.OtherOS = (this.ChAgent.indexOf("Win" && "Mac") == -1);
	
	this.Op = ((this.ChBrowser.indexOf("Microsoft") != -1) && (this.ChAgent.indexOf("Opera") != -1));
	this.Ie4 = ((this.ChBrowser.indexOf("Microsoft") != -1) && (this.ChAgent.indexOf("MSIE 4") != -1));
	this.Ie = ((this.ChBrowser.indexOf("Microsoft") != -1) && (this.ChAgent.indexOf("IE") != -1));
	this.Ge = ((this.ChBrowser.indexOf("Netscape") != -1) && (this.ChAgent.indexOf("Gecko/") != -1));
	this.Nn3 = ((this.ChBrowser.indexOf("Netscape") != -1) && (this.ChAppVer.substr(0,1) <= 3));
	this.Nn4 = ((this.ChBrowser.indexOf("Netscape") != -1) && (this.ChAppVer.substr(0,1) >= 4));

}

var CheckB = new SystemRequirementCheck();


/* new window */
function winopn(winName,url) {
	if (url) {
	opnwin = window.open(url, winName,"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	opnwin.focus();
	}
}
