// 画像をサブウィンドウに表示する
//
// 使い方
// <p><a href="#" class="enlarge" onclick="javascript:popupImg('/images/prdct_coin/ex2.gif','30坪店舗サンプル（10m x 10m）',530,543);" title="拡大表示"><span>拡大表示</span></a></p>
//


function popupImg(url, alt, w, h){
	var ww = w + 40;
	var wh = h + 70;

	var strhtml = "<html><head>"
			+ "<title>テックアプライアンス</title>"
			+ "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\"></meta>"
			+ "<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\"></meta>"
			+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\"></meta>"
			+ "<style type=\"text/css\">"
			+ ".close span { display:none; }"
			+ ".close{ display:block; width:60px; height:20px; background-image:url('/i/close.gif'); background-repeat:repeat; }"
			+ ".close:link, .close:visited{background-position:0px 0px;}"
			+ ".close:hover, .close:active {background-position:0px -20px;}"
			+ "</style>"
			+ "<script type=\"text/javascript\" src=\"/j/common.js\"></script>"
			+ "</head><body>"
			+ "<p align=\"center\"><img src=\"" + url + "\" alt=\"" + alt + "\" border=\"0\" width=\"" + w +  "\" height=\"" + h + "\"></p>"
			+ "<p align=\"right\"><a class=\"close\" href=\"javascript:window.close();\"><span>閉じる</span></a></p>"
			+ "</body></html>";

	var newWin=window.open(url, "tac_subwin","width=" + ww + ",height=" + wh + ",resizable=yes,scrollbars=no");
	newWin.document.open();
	newWin.document.write(strhtml);
	newWin.document.close();
	newWin.focus();
}


function popupSwf(id, url, w, h, v, t){
	if(v == ""){
		v = "6,0,0,0";
	}
	if(t == ""){
		t = "テックアプライアンス";
	}

	var strhtml = "<html><head>"
			+ "<title>" + t + "</title>"
			+ "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\"></meta>"
			+ "<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\"></meta>"
			+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"></meta>"
			+ "<link rel=\"/c/style.css\" type=\"text/css\"></link>"
			+ "<script type=\"text/javascript\" src=\"/j/common.js\"></script>"
			+ "</head><body style=\"background-color:#000; margin:0; padding:0;\">"

			+ "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + v + "\" width=\"" + w + " height=\"" + w + "\" id=\"" + id + "\">"
			+ "<param name=\"movie\" value=\"" + url + "\" />"
			+ "<param name=\"quality\" value=\"high\" />"
			+ "<param name=\"bgcolor\" value=\"#000000\" />"
			+ "<embed src=\"" + url + "\" quality=\"high\" bgcolor=\"#000000\" width=\"" + w + "\" height=\"" + h + "\" name=\" + id + \" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>"
			+ "</object>"

			+ "</body></html>";

	var newWin=window.open(url, "tac_subwin","width=" + w + ",height=" + h + ",resizable=yes,scrollbars=no");
	newWin.document.open();
	newWin.document.write(strhtml);
	newWin.document.close();
	newWin.focus();
}



function goContact(){
	var newWin=window.open("https://ssl.tecappliance.co.jp/contact/index.html", "contact_win","width=720,height=540,resizable=yes,scrollbars=yes");
	newWin.focus();
}


function goNikkei(){
	var newWin=window.open("https://ssl.tecappliance.co.jp/contact/nikkei.html", "contact_win","width=720,height=540,resizable=yes,scrollbars=yes");
	newWin.focus();
}

function goPartner(){
	var newWin=window.open("https://ssl.tecappliance.co.jp/contact/partner.html", "contact_win","width=720,height=540,resizable=yes,scrollbars=yes");
	newWin.focus();
}

