// ポップアップウインドウを呼び出す
function openimg(img, w, h) { 
	if( w >= 760 || h >= 580 ){
		newWin = window.open("","_blank","width="+w+",height="+h+",scrollbars=yes,resizable");
	}else{
		newWin = window.open("","_blank","width="+w+",height="+h+",scrollbars=no,resizable");
	}
	newWin.document.writeln('<html>');
	newWin.document.writeln('<head>');
	newWin.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">');
	newWin.document.writeln('<meta http-equiv="Content-Style-Type" content="text/css">');
	newWin.document.writeln('<meta http-equiv="Content-Script-Type" content="text/javascript">');
	newWin.document.writeln('<title>TVO テレビ大阪</title>');
	newWin.document.writeln('<style type="text/css">');
	newWin.document.writeln('body,div, p{margin:0;padding:0;}');
	newWin.document.writeln('p#close{margin-top:10px;text-align:center;}');
	newWin.document.writeln('p#img{text-align:center;}');
	newWin.document.writeln('a:link,a:visited{color:#000099;}');
	newWin.document.writeln('a:hover,a:active{color:#cc0000;}');
	newWin.document.writeln('</style>');
	newWin.document.writeln('<head>\n');
	newWin.document.writeln('<body>\n');
	newWin.document.writeln('<div><p id="img"><img src="'+img+'"></p>');
	newWin.document.writeln('<p id="close"><a href="javascript:window.close();">ウィンドウを閉じる</a></p>');
	newWin.document.writeln('</div>');
	newWin.document.writeln('</body>');
	newWin.document.writeln('</html>');
	newWin.document.close();
}
function openhtml(url, w, h){ 
	window.open(url, "_blank","width="+w+",height="+h+",scrollbars=yes,resizable=1");
}

