<!--
window.onload=function(){
	MM_preloadImages('/common/images/sub/sub_products_caramel_o.gif','/common/images/sub/sub_products_onetouch_o.gif','/common/images/sub/sub_products_american_o.gif','/common/images/sub/sub_products_futami_o.gif','/common/images/sub/sub_guide_orderflow_o.gif','/common/images/sub/sub_guide_senddata_o.gif','/common/images/sub/sub_guide_payment_o.gif','/common/images/sub/sub_guide_delivery_o.gif','/common/images/sub/sub_menu_visitor_o.gif','/common/images/sub/sub_menu_qa_o.gif','/common/images/sub/sub_menu_catalog_o.gif','/common/images/sub/sub_menu_blog_o.gif','/common/images/header/head_menu_home_o.gif','/common/images/header/head_menu_service_o.gif','/common/images/header/head_menu_guide_o.gif','/common/images/header/head_menu_visitor_o.gif','/common/images/header/head_menu_qa_o.gif','/common/images/header/head_menu_catalog_o.gif','/common/images/header/head_menu_mypage_o.gif')
	getPaperList();
	
	if ($('sendFlg').value == "1") {
		alert("展開図データを送信しました。\n展開図データを作成してお送りいたします。");
	}
}

function initProc() {
	MM_preloadImages('/common/images/sub/sub_products_caramel_o.gif','/common/images/sub/sub_products_onetouch_o.gif','/common/images/sub/sub_products_american_o.gif','/common/images/sub/sub_products_futami_o.gif','/common/images/sub/sub_guide_orderflow_o.gif','/common/images/sub/sub_guide_senddata_o.gif','/common/images/sub/sub_guide_payment_o.gif','/common/images/sub/sub_guide_delivery_o.gif','/common/images/sub/sub_menu_visitor_o.gif','/common/images/sub/sub_menu_qa_o.gif','/common/images/sub/sub_menu_catalog_o.gif','/common/images/sub/sub_menu_blog_o.gif','/common/images/header/head_menu_home_o.gif','/common/images/header/head_menu_service_o.gif','/common/images/header/head_menu_guide_o.gif','/common/images/header/head_menu_visitor_o.gif','/common/images/header/head_menu_qa_o.gif','/common/images/header/head_menu_catalog_o.gif','/common/images/header/head_menu_mypage_o.gif')
	getPaperList();	

	if ($('sendFlg').value == "1") {
		alert("展開図データを送信しました。\n展開図データを作成してお送りいたします。");
	}
}

/*
 * 紙種リストを取得
 */
function getPaperList() {
	new Ajax.Request("../scripts/getPaperList.php",
					{
						method: "post",
						asynchronous: false,
						onComplete: setPaperList
					});	
}

/*
 * 紙種リストを<select>にセット
 */
function setPaperList(res) {
	//alert(res.responseText);
	eval("var result = " + res.responseText);
	
	var select = $("select_paper");
	
	var child = select.childNodes;
	var len = child.length;
	
	for (var i = 0; i < len; i++) {
		select.removeChild(child[0]);
	}
	
	for (var i = 0; i < result.length; i++) {
		select.options[i] = new Option(result[i].paper_nam,
										result[i].paper_cd);
	}
	
	getThickList();
}

/*
 * 紙厚リストを取得
 */
function getThickList() {
		var $params = "paperCd=" + $("select_paper").value;
		new Ajax.Request("../scripts/getPaperThickList.php",
						{
							method: "post",
							asynchronous: false,
							onComplete: setThickList,
							postBody: $params
						});  		
}

/*
 * 紙厚リストを<select>にセット
 */
function setThickList(res) {
	eval("var result = " + res.responseText);
	
	var select = $("select_paperprice");
	
	var child = select.childNodes;
	var len = child.length;
	
	for (var i = 0; i < len; i++) {
		select.removeChild(child[0]);
	}
	
	for (var i = 0; i < result.length; i++) {
		select.options[i] = new Option(result[i].paper_thick,
										result[i].paper_thick);
	}	
}

function sendData() {
	// POST実行
	document.formMain.submit();	
}
-->