function openBitmap(f,w,h){
	var ww = eval(w)+20;
	var hh = eval(h)+20;
	var features = 'resizable=yes,width=' + ww +',height=' + hh;
	win = window.open(f,'',features);
	win.focus();
	return false; 
}

function openBitmap2(f,w,h,title){
	var ww = eval(w);
	var hh = eval(h)+20;
	var it = 'alt="' + title + '"'
if (title == null ) {
title = "画像ウインドウ";
it = '';
}

if (ww >= (screen.width - 80) ) {
ww = (screen.width * 0.85);
}
if (hh >= (screen.height - 10)) {
hh = (screen.height * 0.85);
} 

	var features = 'resizable=yes,width=' + ww +',height=' + hh;
	win = window.open(f,'',features);
	win.focus();

	win.document.open();
	htm  = '<html><head>';
	htm += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
	htm += '<title>' + title + '</title>';
	htm += '</head>';
	htm += '<body style="margin:0; padding:0; text-align: center;">';
	htm += '<a href="javascript:window.close();" title="ウィンドウを閉じる">';
	htm += '<img src="'+f+'" border="0" '+ it +'>';
	htm += '<br/>close [X]';
	htm += '</a>';
	htm += '</body></html>';
	win.document.write(htm);
	win.document.close();


	return false; 
}

function openPage(f,w,h){
	var ww = eval(w);
	var hh = eval(h);
	var features = 'resizable=yes,width=' + ww +',height=' + hh;
	win = window.open(f,'',features);
	win.focus();
	return false; 
}

function awaBlockOpen(id){
	var disp = document.getElementById(id).style.display;
	if (disp == "block") {
		document.getElementById(id).style.display= "none";
	} else {
		document.getElementById(id).style.display= "block";
	}
}

function awaOpenComments (c) {
   cwin = window.open(c,'comments','width=340,height=460,scrollbars=yes,resizable=yes,status=yes');
   cwin.focus();
}