﻿function imgviewer(url,wName,futrues){
    var html,width, height, resizable, scrollbars;

	width = (futrues && futrues['width']) ? futrues['width'] : "400";
	height = (futrues && futrues['height']) ? futrues['height'] : "430";
    resizable = (futrues && futrues['resizable']) ? futrues['resizable'] : "no";
    scrollbars = (futrues && futrues['scrollbars']) ? futrues['scrollbars'] : "yes";

	if (!wName){
	  wName="imgv";
	}
    
    html  ="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
    html +="<html xmlns=\"http://www.w3.org/1999/xhtml\" >";
    html +="<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=window31j\" />";
    html +="<title>kurasse | くらし しあわせ クラッセ</title>";
    html +="</head>";
    html +="<body>";
    html +="    <img src=\""+url+"\" style=\"border-width: 0px;\"/>";
    html +="    <div style=\"height:30px;\">";
    html +="    </div>";
    html +="    <input type=\"button\" value=\"閉じる\" onclick=\"window.close()\">";
    html +="</body>";
    html +="</html>";

	var win = window.open(url, wName,"scrollbars=" + scrollbars + ",width=" + width + ",height=" + height + ",resizable=" + resizable + ",toolbar=no");
	if (win == null) {
		alert("ブロックされました。");
		return;
	}

	win.document.write(html);
	win.document.close();
	win.focus();
}