function DispImg(src,w,h){
	
	
	//画像サイズに合わせてopenwinサイズを設定
	
	var ua = navigator.userAgent;
	if (ua.match(/Opera[\/\s](\d\.\d+)/)) { //Opera
	}
	else if (ua.match(/MSIE (\d\.\d+)/)) { //Explorer
	}
	else if (ua.match(/Mozilla\/(4\.[5678]\d?)/)) { //Netscape4x
	}
	else if (ua.match(/Netscape6?\/([\.\d]+)/)) { //Netscape6x
	}
	else if (ua.match(/Safari\/([\.\d]+)/)) { //Safari
			w = Number(w) + 0; h = Number(h) + 1;
	}
	else if (ua.match(/Gecko/)) {
		if (ua.match(/(Firebird|Firefox)\/([\.\d]+)/)) { //Firefox
			w = Number(w) + 3; h = Number(h) + 3;
		}
		else if (ua.match(/Thunderbird\/([\.\d]+)/)) { //Thunderbird
		}
		else if (ua.match(/rv:([\.\d]+)/)) { //Mozilla
		}
		else { //Mozilla
		}
	}
	else {
		document.write("N/A");
	}
	
	scbar = 0;
	
	if( Number(w) > 700 ) {
		scbar = 1;
		window_w = w;
		window_h = h + 24;
	}
	if( Number(h) > 400 ) {
		scbar = 1;
		window_w = w + 24;
		window_h = h;
	}
	
	if( scbar == 1 ){
		URL = "http://www.fujibi.or.jp/collection/image.html?path=" + src + "&mw=" + w + "&mh=" + h + "&flag=1";
		PARA = "width="+ window_w + ",height=" + window_h + ",resizable=no,replace=false,scrollbars=1";
	}
	else {
		URL = "http://www.fujibi.or.jp/collection/image.html?path=" + src + "&mw=" + w + "&mh=" + h;
		PARA = "width="+ Number(w) + ",height=" + Number(h) + ",resizable=no,replace=false,scrollbars=0";
	}
	var win = window.open(URL , "img" , PARA);
	win.focus();
}
function DispTopics(src,h,w){
	//URL = "http://fujibi.dbnet.jp/topics/review2.php?img_name=" + src;
	URL = "http://www.fujibi.or.jp/topics/detail.php?id=" + src;
	w = 320;
	
	var ua = navigator.userAgent;
	if (ua.match(/Opera[\/\s](\d\.\d+)/)) { //Opera
	}
	else if (ua.match(/MSIE (\d\.\d+)/)) { //Explorer
	}
	else if (ua.match(/Mozilla\/(4\.[5678]\d?)/)) { //Netscape4x
	}
	else if (ua.match(/Netscape6?\/([\.\d]+)/)) { //Netscape6x
	}
	else if (ua.match(/Safari\/([\.\d]+)/)) { //Safari
			w = 335; h = Number(h) + 50;
	}
	else if (ua.match(/Gecko/)) {
		if (ua.match(/(Firebird|Firefox)\/([\.\d]+)/)) { //Firefox
			w = 335; h = Number(h) + 50;
		}
		else if (ua.match(/Thunderbird\/([\.\d]+)/)) { //Thunderbird
		}
		else if (ua.match(/rv:([\.\d]+)/)) { //Mozilla
		}
		else { //Mozilla
		}
	}
	else {
		document.write("N/A");
	}
	
	PARA = "width="+ w + ",height=" + h + ",resizable=no,replace=false,scrollbars=yes";
	var WIN = window.open(URL , "img" , PARA);
	WIN.focus();
}

