function MM_openBrWindow(theURL,winName,features) {
//v2.0
	var widthX,heightY; //横幅widthxと縦幅heightyの調整値
	if(navigator.appVersion.indexOf("Win")!=-1) {
	//windowsの場合
		if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion.substring(22,26))>=4.0)) { //winでIE4.0以上の時
			widthX=0;
			heightY=0;
		}
		else if((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion.substring(0,3))>=4.0)){ //winでNN4以上の時
			widthX=0;
			heightY=0;
		}
		else{ //WinでNN4.0未満、IE4.0未満、IEorNN以外のブラウザの時
			width=0;
			heightY=0;
			theURL="error.html";
		}
	}
	else if(navigator.appVersion.indexOf("Mac")!=-1) { 
	//Macの時
		if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion.substring(22,26))>=4.0)&&(parseInt(navigator.appVersion.substring(22,26))<5.0)){
		//MacでIE4.0以上5.0未満の時
			widthX=-16;
			heightY=-14;
		}
		else if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion.substring(22,26))>=0.5)){
		//MacでIE5.0以上の場合
			widthX=-16;
			heightY=-16;
		}
		else if((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion.substring(0,3))>=4.0)){
		//MacでNN4.0以上の時
			widthX=0;
			heightY=0;
		}
		else{ //MacでNN4.0未満、IE4.0未満、IEorNN以外のブラウザの時
			widthX=0;
			heightY=0;
			theURL="error.html";
		}
	}
	else { //win以外またはMac以外のosの時
			widthX=0;
			heightY=0;
			theURL="error.html"
	}
	if((widthX!=0)||(heightY!=0)){ //誤差調整が必要な場合
	features = new Array(features.substr(0,(features.indexOf(",width=",0))),
		'width='.concat(parseFloat(features.substring(((features.indexOf("width",0))+6),(features.indexOf(",height",0))))+widthX),
		'height='.concat(parseFloat(features.substring((features.indexOf("height",0)+7),(features.length)))+heightY));
		//縦幅横幅の誤差調整
	}
	window.open(theURL,winName,features);
	//サブウィンドオープン
}