function openWin(url,name,width,height){
	var url;
	var width;
	var height;
	var name;
	
	var new_win;
	
	
	width = parseInt(width);
	
	height = parseInt(height);
	
	
	win_detail = "status=1,toolbar=1,location=0,directories=0,width=" + width + ",height=" + height + ",scrollbars=1, resizable=1";
	
	nw_win= window.open('',name ,win_detail);
	nw_win.document.open();
	nw_win.location.href=url;
	nw_win.window.focus();
}

function openDetail(url){
	var url;
	var output;
	var new_win;
	
	width = 720;
	height = 600;
	
	output ="";
	output += "<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN><html lang=ja><head>";
	output += "<meta http-equiv=Content-Type content=text/html; charset=shift_jis>";
	output += "<meta http-equiv=Content-Script-Type content=text/javascript>";
	output += "<meta http-equiv=Content-Style-Type content=text/css>";
	output += "<link rel=stylesheet type=text/css href=/common/css/basic.css>";
	output += "<link rel=stylesheet type=text/css href=/common/css/default.css>";
	output += "<link rel=stylesheet type=text/css href=/common/css/subwin.css>";
	output += "<title>オークマ</title></head>";
	output += "<body bgcolor=#eeeeee text=#333333 vlink=#9900cc alink=#0033FF link=#9900CC leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>";
	output += "<div id=header><img src=/common/images/header_popup.jpg alt=オークマ株式会社 usemap=#close><br>";
	output += "<map name=close><area shape=rect coords=639,3,698,25 href=javascript:window.close(); alt=Close></map></div>";
	output += "<div id=contents><table border=0 width=700 cellspacing=0 cellpadding=0><tr><td width=700 bgcolor=#ffffff valign=top colspan=2>";
	output += "<div id=h3box><h3><img src=/common/images/pupuph3title.jpg alt=詳細></h3>";
	output += "</div></td></tr><tr>";
	output += "<td width=32 valign=top background=/common/images/contents_leftbg.jpg width=32 bgcolor=#ffffff style=background-repeat:no-repeat;><img src=/common/images/spacer.gif width=32 height=300></td>";
	output += "<td width=668 bgcolor=#ffffff valign=top><div id=body>";
	output += "<div class=figure><img src='";
	output += url;
	output += "'></div>";
	output += "</div></td></tr></table></div>";
	output += "<div id=footer><img src=/common/images/foot_popup.jpg><br></div></body></html>";
	
	win_detail = "status=1,toolbar=0,location=0,directories=0,width=" + width + ",height=" + height + ",scrollbars=1, resizable=1";
	
	nw_win= window.open('','photo',win_detail);
	nw_win.document.open();
	nw_win.document.write(output);
	nw_win.window.focus();
	nw_win.document.close();
}








