
var requestPath = "/coordinate/simulation/data.php";

$( function(){ productReset(); } );

/**
 * 商品変更
 *
 * t 商品タイプID
 * e 処理
 * i 商品ID
**/
function productChange( t, e, i ) {
	$("#info").load(
		requestPath,
		{
			mode: "product_change",
			room_id: room_id,
			t: t,
			e: e,
			i: i
		},
		product_list_html
	);
	
	
}

/**
 * 印刷画像書き出し完了
**/
function completeImage() {
	window.open( "print.php?room_id=" + room_id );
}

/**
 * 商品クリア
**/
function productReset() {
	$("#info").load( requestPath, { mode:"product_reset" } );
}

function product_list_html() {
	$( "#info" ).load( requestPath, {mode: "product_list_html", room_id: room_id } );
}

function item_empty() {
	if($( "#info div.box").length == 0) {
		$("#itemInner").prepend('<p class="no-item"><img src="images/no_item.gif" width="230" height="42" alt="商品が選択されていません"></p>');
	}
}

function printout() {
	$("#coordinate")[0].pngout();
}


