function thumbnail(img,w,h){

/* ウィンドウを開く位置、ウィンドウサイズを指定 */
	var ini = "";
	ini += 'top=0,left=0';
	ini += ',width='+eval(w)+',height='+eval(h)+',';
	ini += 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,';

/* 新ウィンドウを指定した位置に、指定サイズで開く */
	jsw=window.open('','jsw',ini);
/* 新ウィンドウにフォーカスを当てる */
	jsw.focus();

/* 新ウィンドウにドキュメントを書出 */
	htm  = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n';
	htm += '<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">\n';
	htm += '<head>\n';
	htm += '<meta http-equiv="content-language" content="ja" />\n';
	htm += '<meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n';
	htm += '<meta http-equiv="content-script-type" content="text/javascript" />\n';
	htm += '<title>近江兄弟社高等学校 隣人愛</title>\n';
	htm += '<style type="text/css"><!--\n';
	htm += '* { margin:0; padding:0; border:0; }\n';
	htm += '--></style>\n';
	htm += '</head>\n';
	htm += '<bod' + 'y>\n';

/* 画像をクリックすると、ウィンドウを閉じるようにする */
	htm += '<a href="javascript:void(0)" onClick="self.close(); return false;" title="画像をクリックするとこのウィンドウを閉じます">';
	htm += '<img src="'+img+'" width="'+w+'" height="'+h+'" alt="画像をクリックするとこのウィンドウを閉じます" />';
	htm += '</a>\n';
	htm += '</bod'+'y>\n';
	htm += '</html>\n';
	
	jsw.document.write(htm);
	jsw.document.close();
}

function openwin(url, w, h) {
	window.open(url, "", "width=" + w + ",height=" + h);
}

function winClose() {
self.close();
}
