function popimag(imgurl,wsize,hsize,alttext){
	var width  = wsize + 50 ;
	var height = hsize + 70 ;
	if (width  < 100) width  = 100 ;
	if (height < 100) height = 100 ;
	var win1 = window.open('','popimagwin','fullscreen=no,height='+ height + ',width=' + width) ;
	var text = '' ;
	
	text += '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n' ;
	text += '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">\n ';
	text += '<head>\n';
	text += '<meta http-equiv="content-type" content="text/html; charset=EUC-JP" />\n';
	text += '<meta http-equiv="content-language" content="ja" />\n';
	text += '<meta http-equiv="Pragma" content="no-cache" />\n';
	text += '<meta http-equiv="Content-Script-Type" content="text/javascript" />\n';
	text += '<meta http-equiv="Content-Style-Type" content="text/css" />\n';
	text += '<title>IMAGE</title>\n';
	text += '</head>\n';
	text += '<body style="margin: 5px; font-size: 12px;">\n' ;
	text += '<div style="background-color: #ffffff">\n' ;
	text += ' <div style="width: '+ wsize +'; text-align: right; border-bottom: 1px solid #cccccc; margin-bottom: 3px; padding-bottom: 3px;">\n' ;
	text += '  <a href="javascript:window.close();" style="text-align: right;"><img src="http://www.calib.jp/img/close_e.gif" border="0" alt="close" /></a>\n' ;
	text += ' </div>\n' ;
	text += ' <div>\n' ;
//	text += '  <img src="' + imgurl + '" width="' + wsize + '" height="' + hsize + '" alt="' + alttext + '" style="border: 1px solid #cccccc; padding: 2px;"/>\n' ;
	text += '  <img src="' + imgurl + '" alt="' + alttext + '" style="border: 1px solid #cccccc; padding: 2px;"/>\n' ;
	text += ' </div>\n' ;
	text += '</div>\n' ;
	text += '</body>\n' ;
	text += '</html>\n' ;
	win1.focus() ;
	win1.document.write(text) ;
	win1.document.close() ;
}
